From 70a2314848424f0f98d54a1147789682e52fef63 Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Tue, 8 Oct 2024 11:46:39 +0200 Subject: [PATCH] [lang-tests] MixingMultiThreadSearchTest.kt: remove groovy stdlib use GitOrigin-RevId: 7cf59e03c3437c579f4340462d2ac924e9985510 --- platform/lang-impl/intellij.platform.lang.tests.iml | 1 - .../searcheverywhere/MixingMultiThreadSearchTest.kt | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/lang-impl/intellij.platform.lang.tests.iml b/platform/lang-impl/intellij.platform.lang.tests.iml index bd6cd1e01ba1..a0fcd204e0ae 100644 --- a/platform/lang-impl/intellij.platform.lang.tests.iml +++ b/platform/lang-impl/intellij.platform.lang.tests.iml @@ -18,7 +18,6 @@ - diff --git a/platform/lang-impl/testSources/com/intellij/ide/actions/searcheverywhere/MixingMultiThreadSearchTest.kt b/platform/lang-impl/testSources/com/intellij/ide/actions/searcheverywhere/MixingMultiThreadSearchTest.kt index bddf923ca51d..27dbcb0e9614 100644 --- a/platform/lang-impl/testSources/com/intellij/ide/actions/searcheverywhere/MixingMultiThreadSearchTest.kt +++ b/platform/lang-impl/testSources/com/intellij/ide/actions/searcheverywhere/MixingMultiThreadSearchTest.kt @@ -6,16 +6,17 @@ import com.intellij.openapi.application.Experiments import com.intellij.openapi.progress.ProgressIndicator import com.intellij.openapi.util.Disposer import com.intellij.testFramework.fixtures.BasePlatformTestCase -import com.intellij.testFramework.fixtures.BasePlatformTestCase.* +import com.intellij.testFramework.fixtures.BasePlatformTestCase.assertNotNull +import com.intellij.testFramework.fixtures.BasePlatformTestCase.assertTrue import com.intellij.util.Alarm import com.intellij.util.Processor -import org.codehaus.groovy.runtime.DefaultGroovyMethods import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.Parameterized import java.util.concurrent.* import java.util.concurrent.atomic.AtomicBoolean import javax.swing.ListCellRenderer +import kotlin.Throws private const val MORE_ITEM = "...MORE" private const val MIXED_RESULTS_FEATURE = "search.everywhere.mixed.results" @@ -44,7 +45,7 @@ class MixingMultiThreadSearchTest : BasePlatformTestCase() { val collector = SearchResultsCollector() val alarm = Alarm(Alarm.ThreadToUse.POOLED_THREAD, testRootDisposable) val searcher = MixedResultsSearcher(collector, - Executor { command -> DefaultGroovyMethods.invokeMethod(alarm, "addRequest", arrayOf(command, 0)) }, + Executor { command -> alarm.addRequest(command, 0) }, setOf(TrivialElementsEqualityProvider())) val indicator = searcher.search(scenario.contributorsAndLimits, "tst")