Support using Java-repeatable annotations in Kotlin
#KT-12794
This commit is contained in:
Generated
+27
-9
@@ -2101,21 +2101,39 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaRepeatable.kt")
|
||||
public void testJavaRepeatable() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/javaRepeatable.kt");
|
||||
@TestMetadata("javaRepeatable_1_5.kt")
|
||||
public void testJavaRepeatable_1_5() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/javaRepeatable_1_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaUnrepeatable.kt")
|
||||
public void testJavaUnrepeatable() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/javaUnrepeatable.kt");
|
||||
@TestMetadata("javaRepeatable_1_6.kt")
|
||||
public void testJavaRepeatable_1_6() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/javaRepeatable_1_6.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinRepeatable.kt")
|
||||
public void testKotlinRepeatable() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/kotlinRepeatable.kt");
|
||||
@TestMetadata("javaUnrepeatable_1_5.kt")
|
||||
public void testJavaUnrepeatable_1_5() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/javaUnrepeatable_1_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaUnrepeatable_1_6.kt")
|
||||
public void testJavaUnrepeatable_1_6() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/javaUnrepeatable_1_6.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinRepeatable_1_5.kt")
|
||||
public void testKotlinRepeatable_1_5() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/kotlinRepeatable_1_5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinRepeatable_1_6.kt")
|
||||
public void testKotlinRepeatable_1_6() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/kotlinRepeatable_1_6.kt");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+10
@@ -436,6 +436,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/annotations/repeatable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Repeatable {
|
||||
@Test
|
||||
public void testAllFilesPresentInRepeatable() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/repeatable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/annotations/typeAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+10
@@ -423,6 +423,16 @@ public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest {
|
||||
public void testUnsignedTypes() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeListing/annotations/unsignedTypes.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/bytecodeListing/annotations/repeatable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Repeatable {
|
||||
@Test
|
||||
public void testAllFilesPresentInRepeatable() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/annotations/repeatable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+22
@@ -496,6 +496,28 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/annotations/repeatable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Repeatable {
|
||||
@Test
|
||||
public void testAllFilesPresentInRepeatable() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations/repeatable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaAnnotation.kt")
|
||||
public void testJavaAnnotation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/repeatable/javaAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmRepeatableKotlinAnnotation.kt")
|
||||
public void testJvmRepeatableKotlinAnnotation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/repeatable/jvmRepeatableKotlinAnnotation.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/annotations/typeAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+22
@@ -423,6 +423,28 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes
|
||||
public void testUnsignedTypes() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeListing/annotations/unsignedTypes.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/bytecodeListing/annotations/repeatable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Repeatable {
|
||||
@Test
|
||||
public void testAllFilesPresentInRepeatable() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/annotations/repeatable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaAnnotation.kt")
|
||||
public void testJavaAnnotation() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/javaAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonRepeatedAnnotationWithItsContainer.kt")
|
||||
public void testNonRepeatedAnnotationWithItsContainer() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/nonRepeatedAnnotationWithItsContainer.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user