Minor, refactor diagnostic tests on repeatable annotations
This commit is contained in:
Generated
+28
-24
@@ -1199,24 +1199,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/JavaAnnotationConstructors.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaRepeatable.kt")
|
||||
public void testJavaRepeatable() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/javaRepeatable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaRepeatableRetention.kt")
|
||||
public void testJavaRepeatableRetention() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/javaRepeatableRetention.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaUnrepeatable.kt")
|
||||
public void testJavaUnrepeatable() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/javaUnrepeatable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt1860-negative.kt")
|
||||
public void testKt1860_negative() throws Exception {
|
||||
@@ -1600,12 +1582,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/options/prefix.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("repeatable.kt")
|
||||
public void testRepeatable() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/options/repeatable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("retention.kt")
|
||||
public void testRetention() throws Exception {
|
||||
@@ -2115,6 +2091,34 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/annotations/repeatable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Repeatable {
|
||||
@Test
|
||||
public void testAllFilesPresentInRepeatable() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/repeatable"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaRepeatable.kt")
|
||||
public void testJavaRepeatable() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/javaRepeatable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaUnrepeatable.kt")
|
||||
public void testJavaUnrepeatable() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/javaUnrepeatable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinRepeatable.kt")
|
||||
public void testKotlinRepeatable() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/kotlinRepeatable.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/annotations/typeUse")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user