Improve proto comparison test with changes of annotation list
This commit is contained in:
+6
-6
@@ -37,6 +37,12 @@ public class ProtoComparisonTestGenerated extends AbstractProtoComparisonTest {
|
|||||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("jps-plugin/testData/comparison/classSignatureChange"), Pattern.compile("^([^\\.]+)$"), true);
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("jps-plugin/testData/comparison/classSignatureChange"), Pattern.compile("^([^\\.]+)$"), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("classAnnotationListChanged")
|
||||||
|
public void testClassAnnotationListChanged() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/comparison/classSignatureChange/classAnnotationListChanged/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("classFlagsAndMembersChanged")
|
@TestMetadata("classFlagsAndMembersChanged")
|
||||||
public void testClassFlagsAndMembersChanged() throws Exception {
|
public void testClassFlagsAndMembersChanged() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/comparison/classSignatureChange/classFlagsAndMembersChanged/");
|
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/comparison/classSignatureChange/classFlagsAndMembersChanged/");
|
||||||
@@ -61,12 +67,6 @@ public class ProtoComparisonTestGenerated extends AbstractProtoComparisonTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("classWithClassAnnotationListChanged")
|
|
||||||
public void testClassWithClassAnnotationListChanged() throws Exception {
|
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/comparison/classSignatureChange/classWithClassAnnotationListChanged/");
|
|
||||||
doTest(fileName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("classWithSuperTypeListChanged")
|
@TestMetadata("classWithSuperTypeListChanged")
|
||||||
public void testClassWithSuperTypeListChanged() throws Exception {
|
public void testClassWithSuperTypeListChanged() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/comparison/classSignatureChange/classWithSuperTypeListChanged/");
|
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/comparison/classSignatureChange/classWithSuperTypeListChanged/");
|
||||||
|
|||||||
+20
@@ -0,0 +1,20 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
annotation class Ann1
|
||||||
|
annotation class Ann2
|
||||||
|
|
||||||
|
@Ann1
|
||||||
|
@Ann2
|
||||||
|
class AnnotationListBecomeNotEmpty
|
||||||
|
|
||||||
|
class AnnotationListBecomeEmpty
|
||||||
|
|
||||||
|
@Ann1
|
||||||
|
@Ann2
|
||||||
|
class AnnotationAdded
|
||||||
|
|
||||||
|
@Ann1
|
||||||
|
class AnnotationRemoved
|
||||||
|
|
||||||
|
@Ann2
|
||||||
|
class AnnotationReplaced
|
||||||
+20
@@ -0,0 +1,20 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
annotation class Ann1
|
||||||
|
annotation class Ann2
|
||||||
|
|
||||||
|
class AnnotationListBecomeNotEmpty
|
||||||
|
|
||||||
|
@Ann1
|
||||||
|
@Ann2
|
||||||
|
class AnnotationListBecomeEmpty
|
||||||
|
|
||||||
|
@Ann1
|
||||||
|
class AnnotationAdded
|
||||||
|
|
||||||
|
@Ann1
|
||||||
|
@Ann2
|
||||||
|
class AnnotationRemoved
|
||||||
|
|
||||||
|
@Ann1
|
||||||
|
class AnnotationReplaced
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
changes in test/Ann1: NONE
|
||||||
|
changes in test/Ann2: NONE
|
||||||
|
changes in test/AnnotationAdded: NONE
|
||||||
|
changes in test/AnnotationListBecomeEmpty: CLASS_SIGNATURE
|
||||||
|
changes in test/AnnotationListBecomeNotEmpty: CLASS_SIGNATURE
|
||||||
|
changes in test/AnnotationRemoved: NONE
|
||||||
|
changes in test/AnnotationReplaced: NONE
|
||||||
Vendored
-5
@@ -1,5 +0,0 @@
|
|||||||
package test
|
|
||||||
|
|
||||||
import kotlin.annotation.*
|
|
||||||
|
|
||||||
annotation class ClassWithClassAnnotationListChanged
|
|
||||||
Vendored
-4
@@ -1,4 +0,0 @@
|
|||||||
package test
|
|
||||||
|
|
||||||
@Deprecated("") class ClassWithClassAnnotationListChanged
|
|
||||||
|
|
||||||
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
changes in test/ClassWithClassAnnotationListChanged: CLASS_SIGNATURE
|
|
||||||
Reference in New Issue
Block a user