Rewrite test to kotlin and add use Json format for tests configure
This commit is contained in:
@@ -1 +1,5 @@
|
||||
// RENAME: JAVA_CLASS->testing.SomeClass->NewName
|
||||
{
|
||||
"type": "JAVA_CLASS",
|
||||
"classFQN": "testing.SomeClass",
|
||||
"newName": "NewName"
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
// RENAME: JAVA_CLASS->testing.SomeInterface->NewInterfaceName
|
||||
|
||||
// For KT-4100 Imports doesn't change after java interface name refactoring
|
||||
{
|
||||
"type": "JAVA_CLASS",
|
||||
"classFQN": "testing.SomeInterface",
|
||||
"newName": "NewInterfaceName",
|
||||
"comment": "For KT-4100 Imports doesn't change after java interface name refactoring"
|
||||
}
|
||||
@@ -1 +1,6 @@
|
||||
// RENAME: JAVA_METHOD->testing.JavaClass->String foo()->bar
|
||||
{
|
||||
"type": "JAVA_METHOD",
|
||||
"classFQN": "testing.JavaClass",
|
||||
"methodSignature": "String foo()",
|
||||
"newName": "bar"
|
||||
}
|
||||
@@ -1,2 +1,7 @@
|
||||
// RENAME: KOTLIN_FUNCTION->testing.kotlin.KotlinClass.foo->bar
|
||||
// FILE: MethodUsages.kt
|
||||
{
|
||||
"type": "KOTLIN_FUNCTION",
|
||||
"classFQN": "testing.kotlin.KotlinClass",
|
||||
"oldName": "foo",
|
||||
"newName": "bar",
|
||||
"mainFile": "MethodUsages.kt"
|
||||
}
|
||||
+6
-1
@@ -1 +1,6 @@
|
||||
// RENAME: JAVA_METHOD->testing.rename.A->void first()->second
|
||||
{
|
||||
"type": "JAVA_METHOD",
|
||||
"classFQN": "testing.rename.A",
|
||||
"methodSignature": "void first()",
|
||||
"newName": "second"
|
||||
}
|
||||
+6
-1
@@ -1 +1,6 @@
|
||||
// RENAME: JAVA_METHOD->testing.JavaClient.D->void first()->second
|
||||
{
|
||||
"type": "JAVA_METHOD",
|
||||
"classFQN": "testing.JavaClient.D",
|
||||
"methodSignature": "void first()",
|
||||
"newName": "second"
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
// RENAME: KOTLIN_FUNCTION->testing.rename.A.first->second
|
||||
|
||||
// KT-2836 Rename method with all its implementations
|
||||
{
|
||||
"type": "KOTLIN_FUNCTION",
|
||||
"classFQN": "testing.rename.A",
|
||||
"oldName": "first",
|
||||
"newName": "second",
|
||||
"comment": "KT-2836 Rename method with all its implementations"
|
||||
}
|
||||
@@ -1 +1,5 @@
|
||||
// RENAME: JAVA_CLASS->testing.rename.First->Third
|
||||
{
|
||||
"type": "JAVA_CLASS",
|
||||
"classFQN": "testing.rename.First",
|
||||
"newName": "Third"
|
||||
}
|
||||
@@ -1 +1,5 @@
|
||||
// RENAME: KOTLIN_CLASS->testing.rename.First->Third
|
||||
{
|
||||
"type": "KOTLIN_CLASS",
|
||||
"classFQN": "testing.rename.First",
|
||||
"newName": "Third"
|
||||
}
|
||||
+5
-1
@@ -1 +1,5 @@
|
||||
// RENAME: KOTLIN_CLASS->X->TestX
|
||||
{
|
||||
"type": "KOTLIN_CLASS",
|
||||
"classFQN": "X",
|
||||
"newName": "TestX"
|
||||
}
|
||||
@@ -1 +1,5 @@
|
||||
// RENAME: JAVA_CLASS->testing.ClassBefore->ClassAfter
|
||||
{
|
||||
"type": "JAVA_CLASS",
|
||||
"classFQN": "testing.ClassBefore",
|
||||
"newName": "ClassAfter"
|
||||
}
|
||||
@@ -1,2 +1,6 @@
|
||||
// RENAME: KOTLIN_CLASS->testing.ClassBefore->ClassAfter
|
||||
// FILE: ClassBefore.kt
|
||||
{
|
||||
"type": "KOTLIN_CLASS",
|
||||
"classFQN": "testing.ClassBefore",
|
||||
"newName": "ClassAfter",
|
||||
"mainFile": "ClassBefore.kt"
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
// RENAME: JAVA_METHOD->testing.rename.C->int first()->second
|
||||
|
||||
// KT-3256 Can't rename a Kotlin function from Java code
|
||||
{
|
||||
"type": "JAVA_METHOD",
|
||||
"classFQN": "testing.rename.C",
|
||||
"methodSignature": "int first()",
|
||||
"newName": "second",
|
||||
"comment": "KT-3256 Can't rename a Kotlin function from Java code"
|
||||
}
|
||||
@@ -1 +1,6 @@
|
||||
// RENAME: KOTLIN_FUNCTION->testing.rename.C.first->second
|
||||
{
|
||||
"type": "KOTLIN_FUNCTION",
|
||||
"classFQN": "testing.rename.C",
|
||||
"oldName": "first",
|
||||
"newName": "second"
|
||||
}
|
||||
+6
-2
@@ -1,2 +1,6 @@
|
||||
// RENAME: JAVA_CLASS->testing.rename.RenamePackage->NewPackageName
|
||||
// HINT: Can't rename kotlin package class
|
||||
{
|
||||
"type": "JAVA_CLASS",
|
||||
"hint": "Can\u0027t rename kotlin package class",
|
||||
"classFQN": "testing.rename.RenamePackage",
|
||||
"newName": "NewPackageName"
|
||||
}
|
||||
+6
-1
@@ -1 +1,6 @@
|
||||
// RENAME: JAVA_METHOD->testing.rename.RenamePackage->int foo()->bar
|
||||
{
|
||||
"type": "JAVA_METHOD",
|
||||
"classFQN": "testing.rename.RenamePackage",
|
||||
"methodSignature": "int foo()",
|
||||
"newName": "bar"
|
||||
}
|
||||
Reference in New Issue
Block a user