Tests with constants, incremental compilation between Kotlin and Java.
Original commit: 9234ef3803
This commit is contained in:
@@ -323,6 +323,18 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("constantChanged")
|
||||||
|
public void testConstantChanged() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("constantUnchanged")
|
||||||
|
public void testConstantUnchanged() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantUnchanged/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("notChangeSignature")
|
@TestMetadata("notChangeSignature")
|
||||||
public void testNotChangeSignature() throws Exception {
|
public void testNotChangeSignature() throws Exception {
|
||||||
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/javaUsedInKotlin/notChangeSignature/");
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/javaUsedInKotlin/notChangeSignature/");
|
||||||
@@ -352,6 +364,18 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("constantChanged")
|
||||||
|
public void testConstantChanged() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/kotlinUsedInJava/constantChanged/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("constantUnchanged")
|
||||||
|
public void testConstantUnchanged() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/kotlinUsedInJava/constantUnchanged/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("notChangeSignature")
|
@TestMetadata("notChangeSignature")
|
||||||
public void testNotChangeSignature() throws Exception {
|
public void testNotChangeSignature() throws Exception {
|
||||||
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/kotlinUsedInJava/notChangeSignature/");
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/kotlinUsedInJava/notChangeSignature/");
|
||||||
|
|||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
public class JavaClass {
|
||||||
|
public static final String CONST = "A";
|
||||||
|
}
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
public class JavaClass {
|
||||||
|
public static final String CONST = "B";
|
||||||
|
}
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/JavaClass.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/JavaClass.java
|
||||||
|
End of files
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/JavaClass.class
|
||||||
|
out/production/module/Usage.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/usage.kt
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/JavaClass.java
|
||||||
|
End of files
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
deprecated(JavaClass.CONST + JavaClass.CONST)
|
||||||
|
class Usage
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
public class JavaClass {
|
||||||
|
public static final String CONST = "A";
|
||||||
|
}
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
public class JavaClass {
|
||||||
|
public static final String CONST = "A";
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/JavaClass.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/JavaClass.java
|
||||||
|
End of files
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
deprecated(JavaClass.CONST + JavaClass.CONST)
|
||||||
|
class Usage
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
import test.*;
|
||||||
|
|
||||||
|
class Usage {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println(Klass.CONST + Klass.CONST);
|
||||||
|
}
|
||||||
|
}
|
||||||
+18
@@ -0,0 +1,18 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/Klass$object.class
|
||||||
|
out/production/module/test/Klass.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/const.kt
|
||||||
|
End of files
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/Usage.class
|
||||||
|
out/production/module/test/Klass$object.class
|
||||||
|
out/production/module/test/Klass.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/const.kt
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/Usage.java
|
||||||
|
End of files
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
class Klass {
|
||||||
|
class object {
|
||||||
|
// Old and new constant values are different, but their hashes are the same
|
||||||
|
val CONST = "BF"
|
||||||
|
}
|
||||||
|
}
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
class Klass {
|
||||||
|
class object {
|
||||||
|
// Old and new constant values are different, but their hashes are the same
|
||||||
|
val CONST = "Ae"
|
||||||
|
}
|
||||||
|
}
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
import test.*;
|
||||||
|
|
||||||
|
class Usage {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println(Klass.CONST + Klass.CONST);
|
||||||
|
}
|
||||||
|
}
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/Klass$object.class
|
||||||
|
out/production/module/test/Klass.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/const.kt
|
||||||
|
End of files
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
class Klass {
|
||||||
|
class object {
|
||||||
|
val CONST = "bar"
|
||||||
|
}
|
||||||
|
}
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
class Klass {
|
||||||
|
class object {
|
||||||
|
val CONST = "bar"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user