diff --git a/idea/idea-test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCaseBase.java b/idea/idea-test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCaseBase.java index 0010f99a0e4..dbf5e352716 100644 --- a/idea/idea-test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCaseBase.java +++ b/idea/idea-test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCaseBase.java @@ -28,6 +28,7 @@ import gnu.trove.THashSet; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import org.jetbrains.kotlin.test.KotlinTestUtils; import java.io.File; import java.io.FileOutputStream; @@ -101,4 +102,9 @@ public abstract class KotlinLightCodeInsightFixtureTestCaseBase extends LightCod return LocalFileSystem.getInstance().refreshAndFindFileByIoFile(file); } + @Override + protected void runTest() throws Throwable { + //noinspection Convert2MethodRef + KotlinTestUtils.runTestWithThrowable(this, () -> super.runTest()); + } } diff --git a/idea/idea-test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCaseBase.java.191 b/idea/idea-test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCaseBase.java.191 index 496a98bc59a..b7f3bc8e67f 100644 --- a/idea/idea-test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCaseBase.java.191 +++ b/idea/idea-test-framework/test/org/jetbrains/kotlin/idea/test/KotlinLightCodeInsightFixtureTestCaseBase.java.191 @@ -29,6 +29,7 @@ import gnu.trove.THashSet; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import org.jetbrains.kotlin.test.KotlinTestUtils; import java.io.File; import java.io.FileOutputStream; @@ -106,4 +107,9 @@ public abstract class KotlinLightCodeInsightFixtureTestCaseBase extends LightCod return LocalFileSystem.getInstance().refreshAndFindFileByIoFile(file); } + @Override + protected void runTest() throws Throwable { + //noinspection Convert2MethodRef + KotlinTestUtils.runTestWithThrowable(this, () -> super.runTest()); + } }