From 9c42c316c877265d1a56c1dcec474a64305cfb32 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 18 Dec 2019 22:22:35 +0100 Subject: [PATCH] [tests] improving `NotNullVerifyingInstrumenterTest` diagnostics GitOrigin-RevId: cee77c623fe5b08feaa2198cad25430af78ac66a --- .../notNullVerification/NotNullVerifyingInstrumenterTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/java-tests/testSrc/com/intellij/java/compiler/notNullVerification/NotNullVerifyingInstrumenterTest.java b/java/java-tests/testSrc/com/intellij/java/compiler/notNullVerification/NotNullVerifyingInstrumenterTest.java index 3f4614e9f7e7..601e5f83feec 100644 --- a/java/java-tests/testSrc/com/intellij/java/compiler/notNullVerification/NotNullVerifyingInstrumenterTest.java +++ b/java/java-tests/testSrc/com/intellij/java/compiler/notNullVerification/NotNullVerifyingInstrumenterTest.java @@ -395,6 +395,9 @@ public abstract class NotNullVerifyingInstrumenterTest { if (cause instanceof IllegalStateException || cause instanceof IllegalArgumentException) { exceptionText = cause.getMessage(); } + else { + throw ex; + } } assertEquals(expectedError, exceptionText); }