Regenerate tests after removing separate test configurations for JDK 21

^KT-58765

Now that JDK 21 was released as stable, we can remove separate test
configurations for testing the compiler with JDK 21 and reintegrate
the corresponding test data into standard test configurations.
This commit is contained in:
Stanislav Ruban
2024-01-08 18:27:12 +02:00
committed by Space Team
parent a5bae12915
commit 4ef830f9ee
8 changed files with 170 additions and 150 deletions
@@ -38097,6 +38097,40 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/testsWithJava21")
@TestDataPath("$PROJECT_ROOT")
public class TestsWithJava21 {
@Test
public void testAllFilesPresentInTestsWithJava21() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/testsWithJava21"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("implementationsForSequencedCollection.kt")
public void testImplementationsForSequencedCollection() throws Exception {
runTest("compiler/testData/diagnostics/tests/testsWithJava21/implementationsForSequencedCollection.kt");
}
@Test
@TestMetadata("newListMethods.kt")
public void testNewListMethods() throws Exception {
runTest("compiler/testData/diagnostics/tests/testsWithJava21/newListMethods.kt");
}
@Test
@TestMetadata("newListMethodsImmutable.kt")
public void testNewListMethodsImmutable() throws Exception {
runTest("compiler/testData/diagnostics/tests/testsWithJava21/newListMethodsImmutable.kt");
}
@Test
@TestMetadata("noFalsePositiveAbstractToArray.kt")
public void testNoFalsePositiveAbstractToArray() throws Exception {
runTest("compiler/testData/diagnostics/tests/testsWithJava21/noFalsePositiveAbstractToArray.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/thisAndSuper")
@TestDataPath("$PROJECT_ROOT")
@@ -38097,6 +38097,40 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/testsWithJava21")
@TestDataPath("$PROJECT_ROOT")
public class TestsWithJava21 {
@Test
public void testAllFilesPresentInTestsWithJava21() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/testsWithJava21"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("implementationsForSequencedCollection.kt")
public void testImplementationsForSequencedCollection() throws Exception {
runTest("compiler/testData/diagnostics/tests/testsWithJava21/implementationsForSequencedCollection.kt");
}
@Test
@TestMetadata("newListMethods.kt")
public void testNewListMethods() throws Exception {
runTest("compiler/testData/diagnostics/tests/testsWithJava21/newListMethods.kt");
}
@Test
@TestMetadata("newListMethodsImmutable.kt")
public void testNewListMethodsImmutable() throws Exception {
runTest("compiler/testData/diagnostics/tests/testsWithJava21/newListMethodsImmutable.kt");
}
@Test
@TestMetadata("noFalsePositiveAbstractToArray.kt")
public void testNoFalsePositiveAbstractToArray() throws Exception {
runTest("compiler/testData/diagnostics/tests/testsWithJava21/noFalsePositiveAbstractToArray.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/thisAndSuper")
@TestDataPath("$PROJECT_ROOT")