[kotlin] testdata for introduce parameter

^KTIJ-17495 fixed

GitOrigin-RevId: 1881387977c8d66c026e52de74afb740c335a311
This commit is contained in:
Anna Kozlova
2024-05-16 17:11:31 +02:00
committed by intellij-monorepo-bot
parent 1ae143a229
commit a3bda1cfb5
6 changed files with 26 additions and 0 deletions

View File

@@ -3646,6 +3646,11 @@ public abstract class ExtractionTestGenerated extends AbstractExtractionTest {
runTest("testData/refactoring/introduceParameter/resultedType.kt");
}
@TestMetadata("resultedTypeWithJava.kt")
public void testResultedTypeWithJava() throws Exception {
runTest("testData/refactoring/introduceParameter/resultedTypeWithJava.kt");
}
@TestMetadata("return.kt")
public void testReturn() throws Exception {
runTest("testData/refactoring/introduceParameter/return.kt");

View File

@@ -0,0 +1,7 @@
class Tester {
public Tester(String minimumSize) {}
}
interface ActionToolbar {
String foo = "foo";
}

View File

@@ -0,0 +1,3 @@
private fun bar() {
val b = Tester(<selection>ActionToolbar.foo</selection>)
}

View File

@@ -0,0 +1,3 @@
private fun bar(s: String = ActionToolbar.foo) {
val b = Tester(s)
}

View File

@@ -0,0 +1,3 @@
private fun bar(string: String = ActionToolbar.foo) {
val b = Tester(string)
}

View File

@@ -390,6 +390,11 @@ public abstract class K2IntroduceParameterTestGenerated extends AbstractK2Introd
runTest("../../idea/tests/testData/refactoring/introduceParameter/resultedType.kt");
}
@TestMetadata("resultedTypeWithJava.kt")
public void testResultedTypeWithJava() throws Exception {
runTest("../../idea/tests/testData/refactoring/introduceParameter/resultedTypeWithJava.kt");
}
@TestMetadata("return.kt")
public void testReturn() throws Exception {
runTest("../../idea/tests/testData/refactoring/introduceParameter/return.kt");