Add incremental compilation test with change of annotation class
Original commit: 1ef615e020
This commit is contained in:
+6
@@ -1039,6 +1039,12 @@ public class ExperimentalIncrementalJpsTestGenerated extends AbstractExperimenta
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("jps-plugin/testData/incremental/classHierarchyAffected"), Pattern.compile("^([^\\.]+)$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotationFlagRemoved")
|
||||
public void testAnnotationFlagRemoved() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/classHierarchyAffected/annotationFlagRemoved/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("annotationListChanged")
|
||||
public void testAnnotationListChanged() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/classHierarchyAffected/annotationListChanged/");
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
annotation class Ann1
|
||||
+1
@@ -0,0 +1 @@
|
||||
class Ann1
|
||||
+1
@@ -0,0 +1 @@
|
||||
annotation class Ann1
|
||||
+1
@@ -0,0 +1 @@
|
||||
annotation class Ann2
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
@Ann1
|
||||
class UseAnn1
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
@Ann2
|
||||
class UseAnn2
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
Cleaning output files:
|
||||
out/production/module/Ann1.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/Ann1.kt
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/UseAnn1.class
|
||||
out/production/module/UseAnn1FunKt.class
|
||||
out/production/module/UseAnn1ValKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/UseAnn1Class.kt
|
||||
src/useAnn1Fun.kt
|
||||
src/useAnn1Val.kt
|
||||
End of files
|
||||
COMPILATION FAILED
|
||||
'Ann1' is not an annotation class
|
||||
'Ann1' is not an annotation class
|
||||
'Ann1' is not an annotation class
|
||||
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/Ann1.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/Ann1.kt
|
||||
src/UseAnn1Class.kt
|
||||
src/useAnn1Fun.kt
|
||||
src/useAnn1Val.kt
|
||||
End of files
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
@Ann1
|
||||
fun useAnn1() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
@Ann1
|
||||
val useAnn1Val = 0
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
@Ann2
|
||||
fun useAnn2() {}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
@Ann2
|
||||
val useAnn2Val = 0
|
||||
Reference in New Issue
Block a user