From 96b224c0d819aed921a2b7af2c830001fdf7c1ff Mon Sep 17 00:00:00 2001 From: Alex Plate Date: Fri, 25 Oct 2024 14:47:54 +0300 Subject: [PATCH] Fix compilation issues --- .../plugins/ideavim/propertybased/IncrementDecrementCheck.kt | 3 ++- .../ideavim/propertybased/RandomActionsPropertyTest.kt | 4 ++-- .../plugins/ideavim/propertybased/YankDeletePropertyTest.kt | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/property-tests/src/test/kotlin/org/jetbrains/plugins/ideavim/propertybased/IncrementDecrementCheck.kt b/tests/property-tests/src/test/kotlin/org/jetbrains/plugins/ideavim/propertybased/IncrementDecrementCheck.kt index 1f0c8903a2..c8dbcc78fd 100644 --- a/tests/property-tests/src/test/kotlin/org/jetbrains/plugins/ideavim/propertybased/IncrementDecrementCheck.kt +++ b/tests/property-tests/src/test/kotlin/org/jetbrains/plugins/ideavim/propertybased/IncrementDecrementCheck.kt @@ -18,6 +18,7 @@ import org.jetbrains.jetCheck.PropertyChecker import org.jetbrains.plugins.ideavim.NeovimTesting import org.jetbrains.plugins.ideavim.SkipNeovimReason import org.jetbrains.plugins.ideavim.TestWithoutNeovim +import org.jetbrains.plugins.ideavim.VimNoWriteActionTestCase import org.jetbrains.plugins.ideavim.VimTestCase import org.junit.jupiter.api.Test import kotlin.math.absoluteValue @@ -75,7 +76,7 @@ private class IncrementDecrementActions(private val editor: Editor, val test: Vi val key = env.generateValue(generator, null) val action = injector.parser.parseKeys(key).single() env.logMessage("Use command: ${injector.parser.toKeyNotation(action)}.") - VimTestCase.typeText(listOf(action), editor, editor.project) + VimNoWriteActionTestCase.typeText(listOf(action), editor, editor.project) NeovimTesting.typeCommand(key, test.testInfo, editor) IdeEventQueue.getInstance().flushQueue() diff --git a/tests/property-tests/src/test/kotlin/org/jetbrains/plugins/ideavim/propertybased/RandomActionsPropertyTest.kt b/tests/property-tests/src/test/kotlin/org/jetbrains/plugins/ideavim/propertybased/RandomActionsPropertyTest.kt index de661704fd..dbd66c539d 100644 --- a/tests/property-tests/src/test/kotlin/org/jetbrains/plugins/ideavim/propertybased/RandomActionsPropertyTest.kt +++ b/tests/property-tests/src/test/kotlin/org/jetbrains/plugins/ideavim/propertybased/RandomActionsPropertyTest.kt @@ -19,7 +19,7 @@ import com.maddyhome.idea.vim.newapi.vim import org.jetbrains.jetCheck.Generator import org.jetbrains.jetCheck.ImperativeCommand import org.jetbrains.jetCheck.PropertyChecker -import org.jetbrains.plugins.ideavim.VimTestCase +import org.jetbrains.plugins.ideavim.VimNoWriteActionTestCase import org.jetbrains.plugins.ideavim.propertybased.samples.javaText import org.jetbrains.plugins.ideavim.propertybased.samples.loremText import org.junit.jupiter.api.Test @@ -105,7 +105,7 @@ private class AvailableActions(private val editor: Editor) : ImperativeCommand { val node = currentNode[usedKey] env.logMessage("Use command: ${injector.parser.toKeyNotation(usedKey)}. ${if (node is CommandNode) "Action: ${node.actionHolder.actionId}" else ""}") - VimTestCase.typeText(listOf(usedKey), editor, editor.project) + VimNoWriteActionTestCase.typeText(listOf(usedKey), editor, editor.project) IdeEventQueue.getInstance().flushQueue() PlatformTestUtil.dispatchAllInvocationEventsInIdeEventQueue() diff --git a/tests/property-tests/src/test/kotlin/org/jetbrains/plugins/ideavim/propertybased/YankDeletePropertyTest.kt b/tests/property-tests/src/test/kotlin/org/jetbrains/plugins/ideavim/propertybased/YankDeletePropertyTest.kt index 1cb4f79dcd..ccb92678f0 100644 --- a/tests/property-tests/src/test/kotlin/org/jetbrains/plugins/ideavim/propertybased/YankDeletePropertyTest.kt +++ b/tests/property-tests/src/test/kotlin/org/jetbrains/plugins/ideavim/propertybased/YankDeletePropertyTest.kt @@ -15,7 +15,7 @@ import com.maddyhome.idea.vim.api.injector import org.jetbrains.jetCheck.Generator import org.jetbrains.jetCheck.ImperativeCommand import org.jetbrains.jetCheck.PropertyChecker -import org.jetbrains.plugins.ideavim.VimTestCase +import org.jetbrains.plugins.ideavim.VimNoWriteActionTestCase import org.jetbrains.plugins.ideavim.propertybased.samples.loremText import org.junit.jupiter.api.Test @@ -41,7 +41,7 @@ private class YankDeleteActions(private val editor: Editor) : ImperativeCommand val key = env.generateValue(Generator.sampledFrom(keysList), null) env.logMessage("Use command: $key") - VimTestCase.typeText(injector.parser.parseKeys(key), editor, editor.project) + VimNoWriteActionTestCase.typeText(injector.parser.parseKeys(key), editor, editor.project) IdeEventQueue.getInstance().flushQueue() PlatformTestUtil.dispatchAllInvocationEventsInIdeEventQueue()