Convert RenameTest to light fixture test case

Extract multi-module rename test to a separate class.
This commit is contained in:
Dmitry Jemerov
2017-03-27 18:02:21 +02:00
parent 228b3c56a3
commit 6febe1e8a2
16 changed files with 233 additions and 119 deletions
@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
@@ -1,3 +0,0 @@
package foo
fun test()
@@ -1,3 +0,0 @@
package foo
fun test()
@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
@@ -1,3 +0,0 @@
package foo
fun test()
@@ -1,3 +0,0 @@
package foo
fun test()
@@ -1,6 +0,0 @@
{
"type": "FILE",
"file": "A/notSrc/test.kt",
"newName": "test2.kt",
"isMultiModule": "true"
}
+2 -1
View File
@@ -3,5 +3,6 @@
"classId": "/A",
"oldName": "equals",
"newName": "foo",
"mainFile": "equals.kt"
"mainFile": "equals.kt",
"skipSubstitute": true
}
@@ -1,5 +1,5 @@
package testing.rename
public open class C {
@JvmStatic var <caret> second = 1
@JvmStatic var second = 1
}