Move: Convert AbstractMoveTest to light fixture test case
Extract multi-module move test to a separate class
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
<?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>
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package packJvm
|
||||
|
||||
class ClassUsageJs {
|
||||
init {
|
||||
listOf("example")
|
||||
arrayOf("another")
|
||||
Pair(1, "2")
|
||||
}
|
||||
|
||||
@JsName("bar")
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
idea/testData/refactoring/moveMultiModule/moveFromJsModuleToJvmModule/after/A/src/packJvm/testJvm.kt
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
package packJvm
|
||||
|
||||
class ClassUsageJvm {
|
||||
init {
|
||||
listOf("example")
|
||||
arrayOf("another")
|
||||
Pair(1, "2")
|
||||
}
|
||||
|
||||
companion object {
|
||||
@JvmStatic fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Foo
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<?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>
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package packJs
|
||||
|
||||
class Foo
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<?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>
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package packJvm
|
||||
|
||||
class ClassUsageJvm {
|
||||
init {
|
||||
listOf("example")
|
||||
arrayOf("another")
|
||||
Pair(1, "2")
|
||||
}
|
||||
|
||||
companion object {
|
||||
@JvmStatic fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Foo
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<?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>
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
package packJs
|
||||
|
||||
class <caret>ClassUsageJs {
|
||||
init {
|
||||
listOf("example")
|
||||
arrayOf("another")
|
||||
Pair(1, "2")
|
||||
}
|
||||
|
||||
@JsName("bar")
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Foo
|
||||
+1
@@ -0,0 +1 @@
|
||||
Constructor JsName(String), referenced in function packJs.ClassUsageJs.foo(), will not be accessible in module A
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"mainFile": "B/src/packJs/testJs.kt",
|
||||
"type": "MOVE_KOTLIN_TOP_LEVEL_DECLARATIONS",
|
||||
"targetPackage": "packJvm",
|
||||
"targetSourceRoot": "A/src",
|
||||
"withRuntime": "true",
|
||||
"modulesWithRuntime": ["A"],
|
||||
"modulesWithJsRuntime": ["B"]
|
||||
}
|
||||
Reference in New Issue
Block a user