mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[kotlin] testdata for introduce parameter
^KTIJ-17495 fixed GitOrigin-RevId: 1881387977c8d66c026e52de74afb740c335a311
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1ae143a229
commit
a3bda1cfb5
@@ -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");
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
class Tester {
|
||||
public Tester(String minimumSize) {}
|
||||
}
|
||||
|
||||
interface ActionToolbar {
|
||||
String foo = "foo";
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
private fun bar() {
|
||||
val b = Tester(<selection>ActionToolbar.foo</selection>)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
private fun bar(s: String = ActionToolbar.foo) {
|
||||
val b = Tester(s)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
private fun bar(string: String = ActionToolbar.foo) {
|
||||
val b = Tester(string)
|
||||
}
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user