From c9fd79c311ce3d1a356d615273a68b6ae9d010b8 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Wed, 26 Feb 2020 16:22:07 +0300 Subject: [PATCH] Enable mute in code for all KotlinLightCodeInsightFixtureTestCaseBase --- .../test/KotlinLightCodeInsightFixtureTestCaseBase.java | 6 ++++++ .../test/KotlinLightCodeInsightFixtureTestCaseBase.java.191 | 6 ++++++ 2 files changed, 12 insertions(+) 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()); + } }