add tests for incremental compilation when only private part changed
This commit is contained in:
@@ -401,6 +401,78 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateMethodAdded")
|
||||||
|
public void testPrivateMethodAdded() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/privateMethodAdded/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateMethodDeleted")
|
||||||
|
public void testPrivateMethodDeleted() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/privateMethodDeleted/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateMethodSignatureChanged")
|
||||||
|
public void testPrivateMethodSignatureChanged() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/privateMethodSignatureChanged/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateSecondaryConstructorAdded")
|
||||||
|
public void testPrivateSecondaryConstructorAdded() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/privateSecondaryConstructorAdded/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateSecondaryConstructorDeleted")
|
||||||
|
public void testPrivateSecondaryConstructorDeleted() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/privateSecondaryConstructorDeleted/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateValAccessorChanged")
|
||||||
|
public void testPrivateValAccessorChanged() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/privateValAccessorChanged/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateValAdded")
|
||||||
|
public void testPrivateValAdded() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/privateValAdded/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateValDeleted")
|
||||||
|
public void testPrivateValDeleted() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/privateValDeleted/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateValSignatureChanged")
|
||||||
|
public void testPrivateValSignatureChanged() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/privateValSignatureChanged/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateVarAdded")
|
||||||
|
public void testPrivateVarAdded() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/privateVarAdded/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateVarDeleted")
|
||||||
|
public void testPrivateVarDeleted() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/privateVarDeleted/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateVarSignatureChanged")
|
||||||
|
public void testPrivateVarSignatureChanged() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/privateVarSignatureChanged/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("propertyRedeclaration")
|
@TestMetadata("propertyRedeclaration")
|
||||||
public void testPropertyRedeclaration() throws Exception {
|
public void testPropertyRedeclaration() throws Exception {
|
||||||
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/propertyRedeclaration/");
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/propertyRedeclaration/");
|
||||||
@@ -640,6 +712,12 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privateChanges")
|
||||||
|
public void testPrivateChanges() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/kotlinUsedInJava/privateChanges/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("propertyRenamed")
|
@TestMetadata("propertyRenamed")
|
||||||
public void testPropertyRenamed() throws Exception {
|
public void testPropertyRenamed() throws Exception {
|
||||||
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/kotlinUsedInJava/propertyRenamed/");
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/kotlinUsedInJava/propertyRenamed/");
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private fun meth2() {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public object Usage {
|
||||||
|
public fun f() {
|
||||||
|
ClassA().meth1()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private fun meth2() {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public object Usage {
|
||||||
|
public fun f() {
|
||||||
|
ClassA().meth1()
|
||||||
|
}
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private fun meth2(x: Int): Unit {}
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private fun meth2(x: String, y: Int): Int = 10
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public object Usage {
|
||||||
|
public fun f() {
|
||||||
|
ClassA().meth1()
|
||||||
|
}
|
||||||
|
}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private constructor(x: Int) : this() {}
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public object Usage {
|
||||||
|
public fun f() {
|
||||||
|
ClassA().meth1()
|
||||||
|
}
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private constructor(x: Int) : this() {}
|
||||||
|
}
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public object Usage {
|
||||||
|
public fun f() {
|
||||||
|
ClassA().meth1()
|
||||||
|
}
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private val x = 100
|
||||||
|
}
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private val x: Int
|
||||||
|
get() = 200
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public object Usage {
|
||||||
|
public fun f() {
|
||||||
|
ClassA().meth1()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private val x = 100
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public object Usage {
|
||||||
|
public fun f() {
|
||||||
|
ClassA().meth1()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private val x = 100
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public object Usage {
|
||||||
|
public fun f() {
|
||||||
|
ClassA().meth1()
|
||||||
|
}
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private val x = 100
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private val x: String = "X"
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public object Usage {
|
||||||
|
public fun f() {
|
||||||
|
ClassA().meth1()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private var x = 100
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public object Usage {
|
||||||
|
public fun f() {
|
||||||
|
ClassA().meth1()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private var x = 100
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public object Usage {
|
||||||
|
public fun f() {
|
||||||
|
ClassA().meth1()
|
||||||
|
}
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private var x = 100
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA() {
|
||||||
|
public fun meth1() {}
|
||||||
|
private var x: String = "X"
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public object Usage {
|
||||||
|
public fun f() {
|
||||||
|
ClassA().meth1()
|
||||||
|
}
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA {
|
||||||
|
public fun meth1() {}
|
||||||
|
private fun meth2() {}
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class ClassA {
|
||||||
|
public fun meth1() {}
|
||||||
|
private fun meth3() {}
|
||||||
|
}
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
public class Usage {
|
||||||
|
public static void f() {
|
||||||
|
new ClassA().meth1();
|
||||||
|
}
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/ClassA.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/ClassA.kt
|
||||||
|
End of files
|
||||||
Reference in New Issue
Block a user