From afa6c671538c9e0d8a2b0ac33aa4e2686d0900f4 Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Tue, 19 Jul 2022 00:38:30 +0200 Subject: [PATCH] [kotlin] Fix `Kotlin migration` notification tests for ^KTIJ-22128 GitOrigin-RevId: e87f6de54696e1c958d4ee6152669457705497a3 --- .../kotlin/idea/configuration/ConfigureKotlinInTempDirTest.kt | 2 +- .../test/org/jetbrains/kotlin/idea/maven/MavenMigrateTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/configuration/ConfigureKotlinInTempDirTest.kt b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/configuration/ConfigureKotlinInTempDirTest.kt index e14cc1a9d9c2..084204493fd7 100644 --- a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/configuration/ConfigureKotlinInTempDirTest.kt +++ b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/configuration/ConfigureKotlinInTempDirTest.kt @@ -131,7 +131,7 @@ class ConfigureKotlinInTempDirTest : AbstractConfigureKotlinInTempDirTest() { } assertEquals( - "Migrations for Kotlin code are available

Detected migration:
  Language version: 1.5 -> 1.6
", + "Update your code to replace the use of deprecated language and library features with supported constructs

Detected migration:
  Language version: 1.5 to 1.6
", notificationText, ) } diff --git a/plugins/kotlin/maven/tests/test/org/jetbrains/kotlin/idea/maven/MavenMigrateTest.kt b/plugins/kotlin/maven/tests/test/org/jetbrains/kotlin/idea/maven/MavenMigrateTest.kt index 1150797f786a..fd750b095541 100644 --- a/plugins/kotlin/maven/tests/test/org/jetbrains/kotlin/idea/maven/MavenMigrateTest.kt +++ b/plugins/kotlin/maven/tests/test/org/jetbrains/kotlin/idea/maven/MavenMigrateTest.kt @@ -78,7 +78,7 @@ class MavenMigrateTest : KotlinMavenImportingTestCase() { assertTrue( /* message = */ notifications.asText(), /* condition = */ notifications.any { - it.content == "Migrations for Kotlin code are available

Detected migration:
  Language version: 1.5 -> 1.6
  API version: 1.5 -> 1.6
" + it.content == "Update your code to replace the use of deprecated language and library features with supported constructs

Detected migration:
  Language version: 1.5 to 1.6
  API version: 1.5 to 1.6
" } ) }