From 2243be4fbb0cb1dd6ca8b4ac30ba31761ac1ac0a Mon Sep 17 00:00:00 2001 From: Emil Kantis Date: Sat, 22 Jun 2024 12:21:10 +0200 Subject: [PATCH] Updating usage of runWriteAction to non-deprecated version --- .../plugin/intellij/intentions/AssertSoftlyIntentionTest.kt | 2 +- .../io/kotest/plugin/intellij/intentions/BangIntentionTest.kt | 2 +- .../plugin/intellij/intentions/ShouldThrowIntentionTest.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/kotlin/io/kotest/plugin/intellij/intentions/AssertSoftlyIntentionTest.kt b/src/test/kotlin/io/kotest/plugin/intellij/intentions/AssertSoftlyIntentionTest.kt index f6af3c72..7f4377f7 100644 --- a/src/test/kotlin/io/kotest/plugin/intellij/intentions/AssertSoftlyIntentionTest.kt +++ b/src/test/kotlin/io/kotest/plugin/intellij/intentions/AssertSoftlyIntentionTest.kt @@ -1,10 +1,10 @@ package io.kotest.plugin.intellij.intentions +import com.intellij.openapi.application.runWriteAction import com.intellij.openapi.command.CommandProcessor import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase import io.kotest.matchers.shouldBe import org.jetbrains.kotlin.idea.core.moveCaret -import org.jetbrains.kotlin.idea.util.application.runWriteAction import java.nio.file.Paths class AssertSoftlyIntentionTest : LightJavaCodeInsightFixtureTestCase() { diff --git a/src/test/kotlin/io/kotest/plugin/intellij/intentions/BangIntentionTest.kt b/src/test/kotlin/io/kotest/plugin/intellij/intentions/BangIntentionTest.kt index 648c5a94..10d1f4dc 100644 --- a/src/test/kotlin/io/kotest/plugin/intellij/intentions/BangIntentionTest.kt +++ b/src/test/kotlin/io/kotest/plugin/intellij/intentions/BangIntentionTest.kt @@ -1,11 +1,11 @@ package io.kotest.plugin.intellij.intentions +import com.intellij.openapi.application.runWriteAction import com.intellij.openapi.command.CommandProcessor import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase import io.kotest.matchers.collections.shouldBeEmpty import io.kotest.matchers.shouldBe import org.jetbrains.kotlin.idea.core.moveCaret -import org.jetbrains.kotlin.idea.util.application.runWriteAction import java.nio.file.Paths class BangIntentionTest : LightJavaCodeInsightFixtureTestCase() { diff --git a/src/test/kotlin/io/kotest/plugin/intellij/intentions/ShouldThrowIntentionTest.kt b/src/test/kotlin/io/kotest/plugin/intellij/intentions/ShouldThrowIntentionTest.kt index 36ec919e..4fd19bca 100644 --- a/src/test/kotlin/io/kotest/plugin/intellij/intentions/ShouldThrowIntentionTest.kt +++ b/src/test/kotlin/io/kotest/plugin/intellij/intentions/ShouldThrowIntentionTest.kt @@ -1,10 +1,10 @@ package io.kotest.plugin.intellij.intentions +import com.intellij.openapi.application.runWriteAction import com.intellij.openapi.command.CommandProcessor import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase import io.kotest.matchers.shouldBe import org.jetbrains.kotlin.idea.core.moveCaret -import org.jetbrains.kotlin.idea.util.application.runWriteAction import java.nio.file.Paths class ShouldThrowIntentionTest : LightJavaCodeInsightFixtureTestCase() {