From aad945e629a9170bb543deed74078082fbb8391a Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 8 Dec 2016 16:48:00 +0300 Subject: [PATCH] Run Gradle inspection test in EDT --- .../idea/codeInsight/gradle/GradleInspectionTest.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/idea/tests/org/jetbrains/kotlin/idea/codeInsight/gradle/GradleInspectionTest.kt b/idea/tests/org/jetbrains/kotlin/idea/codeInsight/gradle/GradleInspectionTest.kt index cd326c31b2a..ec2d0ff3705 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/codeInsight/gradle/GradleInspectionTest.kt +++ b/idea/tests/org/jetbrains/kotlin/idea/codeInsight/gradle/GradleInspectionTest.kt @@ -27,6 +27,7 @@ import com.intellij.openapi.vfs.VirtualFile import com.intellij.testFramework.InspectionTestUtil import com.intellij.testFramework.UsefulTestCase import com.intellij.testFramework.fixtures.impl.CodeInsightTestFixtureImpl +import com.intellij.testFramework.runInEdtAndWait import org.jetbrains.kotlin.idea.inspections.gradle.DifferentKotlinGradleVersionInspection import org.jetbrains.kotlin.idea.inspections.gradle.DifferentStdlibGradleVersionInspection import org.junit.Assert @@ -152,4 +153,11 @@ class GradleInspectionTest : GradleImportingTestCase() { return resultRef.get() } + + + override fun invokeTestRunnable(runnable: Runnable) { + runInEdtAndWait { + runnable.run() + } + } } \ No newline at end of file