Diagnostic tests: create fieldRename subDir and use it for related tests
Related to: KT-55846, KT-50082, KT-55436, KT-55017
This commit is contained in:
committed by
Space Team
parent
35c0a3d391
commit
f6bd4d5e15
+40
-30
@@ -213,18 +213,6 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/DeprecatedUnaryOperatorConventions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/derivedClassPropertyShadowsBaseClassField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField13.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField13() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/derivedClassPropertyShadowsBaseClassField13.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedIntersectionPropertyShadowsBaseClassField.kt")
|
||||
public void testDerivedIntersectionPropertyShadowsBaseClassField() throws Exception {
|
||||
@@ -411,24 +399,6 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/IsExpressions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaFieldInPackagePrivate() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaPackagePrivateField.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaPackagePrivateField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/javaFieldKotlinPropertyJavaPackagePrivateField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaProtectedFieldAndKotlinInvisiblePropertyReference.kt")
|
||||
public void testJavaProtectedFieldAndKotlinInvisiblePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/javaProtectedFieldAndKotlinInvisiblePropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt11167.kt")
|
||||
public void testKt11167() throws Exception {
|
||||
@@ -11495,6 +11465,46 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/fieldRename")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class FieldRename {
|
||||
@Test
|
||||
public void testAllFilesPresentInFieldRename() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/fieldRename"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/derivedClassPropertyShadowsBaseClassField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField13.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField13() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/derivedClassPropertyShadowsBaseClassField13.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaFieldInPackagePrivate() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaPackagePrivateField.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaPackagePrivateField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaFieldKotlinPropertyJavaPackagePrivateField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaProtectedFieldAndKotlinInvisiblePropertyReference.kt")
|
||||
public void testJavaProtectedFieldAndKotlinInvisiblePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaProtectedFieldAndKotlinInvisiblePropertyReference.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/funInterface")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+40
-30
@@ -213,18 +213,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/DeprecatedUnaryOperatorConventions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/derivedClassPropertyShadowsBaseClassField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField13.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField13() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/derivedClassPropertyShadowsBaseClassField13.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedIntersectionPropertyShadowsBaseClassField.kt")
|
||||
public void testDerivedIntersectionPropertyShadowsBaseClassField() throws Exception {
|
||||
@@ -411,24 +399,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/IsExpressions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaFieldInPackagePrivate() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaPackagePrivateField.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaPackagePrivateField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/javaFieldKotlinPropertyJavaPackagePrivateField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaProtectedFieldAndKotlinInvisiblePropertyReference.kt")
|
||||
public void testJavaProtectedFieldAndKotlinInvisiblePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/javaProtectedFieldAndKotlinInvisiblePropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt11167.kt")
|
||||
public void testKt11167() throws Exception {
|
||||
@@ -11501,6 +11471,46 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/fieldRename")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class FieldRename {
|
||||
@Test
|
||||
public void testAllFilesPresentInFieldRename() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/fieldRename"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/derivedClassPropertyShadowsBaseClassField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField13.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField13() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/derivedClassPropertyShadowsBaseClassField13.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaFieldInPackagePrivate() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaPackagePrivateField.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaPackagePrivateField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaFieldKotlinPropertyJavaPackagePrivateField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaProtectedFieldAndKotlinInvisiblePropertyReference.kt")
|
||||
public void testJavaProtectedFieldAndKotlinInvisiblePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaProtectedFieldAndKotlinInvisiblePropertyReference.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/funInterface")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+40
-30
@@ -213,18 +213,6 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/DeprecatedUnaryOperatorConventions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/derivedClassPropertyShadowsBaseClassField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField13.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField13() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/derivedClassPropertyShadowsBaseClassField13.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedIntersectionPropertyShadowsBaseClassField.kt")
|
||||
public void testDerivedIntersectionPropertyShadowsBaseClassField() throws Exception {
|
||||
@@ -411,24 +399,6 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/IsExpressions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaFieldInPackagePrivate() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaPackagePrivateField.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaPackagePrivateField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/javaFieldKotlinPropertyJavaPackagePrivateField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaProtectedFieldAndKotlinInvisiblePropertyReference.kt")
|
||||
public void testJavaProtectedFieldAndKotlinInvisiblePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/javaProtectedFieldAndKotlinInvisiblePropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt11167.kt")
|
||||
public void testKt11167() throws Exception {
|
||||
@@ -11495,6 +11465,46 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/fieldRename")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class FieldRename {
|
||||
@Test
|
||||
public void testAllFilesPresentInFieldRename() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/fieldRename"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/derivedClassPropertyShadowsBaseClassField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField13.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField13() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/derivedClassPropertyShadowsBaseClassField13.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaFieldInPackagePrivate() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaPackagePrivateField.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaPackagePrivateField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaFieldKotlinPropertyJavaPackagePrivateField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaProtectedFieldAndKotlinInvisiblePropertyReference.kt")
|
||||
public void testJavaProtectedFieldAndKotlinInvisiblePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaProtectedFieldAndKotlinInvisiblePropertyReference.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/funInterface")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Generated
+40
-30
@@ -213,18 +213,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/DeprecatedUnaryOperatorConventions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/derivedClassPropertyShadowsBaseClassField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField13.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField13() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/derivedClassPropertyShadowsBaseClassField13.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedIntersectionPropertyShadowsBaseClassField.kt")
|
||||
public void testDerivedIntersectionPropertyShadowsBaseClassField() throws Exception {
|
||||
@@ -411,24 +399,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/IsExpressions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaFieldInPackagePrivate() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaPackagePrivateField.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaPackagePrivateField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/javaFieldKotlinPropertyJavaPackagePrivateField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaProtectedFieldAndKotlinInvisiblePropertyReference.kt")
|
||||
public void testJavaProtectedFieldAndKotlinInvisiblePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/javaProtectedFieldAndKotlinInvisiblePropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt11167.kt")
|
||||
public void testKt11167() throws Exception {
|
||||
@@ -11501,6 +11471,46 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/fieldRename")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class FieldRename {
|
||||
@Test
|
||||
public void testAllFilesPresentInFieldRename() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/fieldRename"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/derivedClassPropertyShadowsBaseClassField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("derivedClassPropertyShadowsBaseClassField13.kt")
|
||||
public void testDerivedClassPropertyShadowsBaseClassField13() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/derivedClassPropertyShadowsBaseClassField13.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaFieldInPackagePrivate() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaPackagePrivateField.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaPackagePrivateField() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaFieldKotlinPropertyJavaPackagePrivateField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaProtectedFieldAndKotlinInvisiblePropertyReference.kt")
|
||||
public void testJavaProtectedFieldAndKotlinInvisiblePropertyReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaProtectedFieldAndKotlinInvisiblePropertyReference.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/funInterface")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user