[Tests] Add tests for matching of expect property against Java property

...via typealias. Java property can be either field or method, which
overrides Kotlin property.

^KT-63624
This commit is contained in:
Roman Efremov
2023-12-07 16:48:24 +01:00
committed by Space Team
parent c322644860
commit 3f95e99e29
16 changed files with 388 additions and 0 deletions
@@ -26190,6 +26190,48 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
public void testParameterNames() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/parameterNames.kt");
}
@Test
@TestMetadata("propertyAgainstFakeOverrideInJava.kt")
public void testPropertyAgainstFakeOverrideInJava() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/propertyAgainstFakeOverrideInJava.kt");
}
@Test
@TestMetadata("propertyAgainstJavaMethod.kt")
public void testPropertyAgainstJavaMethod() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/propertyAgainstJavaMethod.kt");
}
@Test
@TestMetadata("propertyAgainstJavaPrivateFieldAndPublicMethod.kt")
public void testPropertyAgainstJavaPrivateFieldAndPublicMethod() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/propertyAgainstJavaPrivateFieldAndPublicMethod.kt");
}
@Test
@TestMetadata("propertyAgainstJavaPublicFieldAndPublicGetter.kt")
public void testPropertyAgainstJavaPublicFieldAndPublicGetter() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/propertyAgainstJavaPublicFieldAndPublicGetter.kt");
}
@Test
@TestMetadata("propertyAgainstValInJavaWithExtraSetter.kt")
public void testPropertyAgainstValInJavaWithExtraSetter() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/propertyAgainstValInJavaWithExtraSetter.kt");
}
@Test
@TestMetadata("varPropertyAgainstJavaField.kt")
public void testVarPropertyAgainstJavaField() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/varPropertyAgainstJavaField.kt");
}
@Test
@TestMetadata("varPropertyAgainstJavaGetterAndNonFinalField.kt")
public void testVarPropertyAgainstJavaGetterAndNonFinalField() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/varPropertyAgainstJavaGetterAndNonFinalField.kt");
}
}
@Nested
@@ -26190,6 +26190,48 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
public void testParameterNames() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/parameterNames.kt");
}
@Test
@TestMetadata("propertyAgainstFakeOverrideInJava.kt")
public void testPropertyAgainstFakeOverrideInJava() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/propertyAgainstFakeOverrideInJava.kt");
}
@Test
@TestMetadata("propertyAgainstJavaMethod.kt")
public void testPropertyAgainstJavaMethod() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/propertyAgainstJavaMethod.kt");
}
@Test
@TestMetadata("propertyAgainstJavaPrivateFieldAndPublicMethod.kt")
public void testPropertyAgainstJavaPrivateFieldAndPublicMethod() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/propertyAgainstJavaPrivateFieldAndPublicMethod.kt");
}
@Test
@TestMetadata("propertyAgainstJavaPublicFieldAndPublicGetter.kt")
public void testPropertyAgainstJavaPublicFieldAndPublicGetter() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/propertyAgainstJavaPublicFieldAndPublicGetter.kt");
}
@Test
@TestMetadata("propertyAgainstValInJavaWithExtraSetter.kt")
public void testPropertyAgainstValInJavaWithExtraSetter() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/propertyAgainstValInJavaWithExtraSetter.kt");
}
@Test
@TestMetadata("varPropertyAgainstJavaField.kt")
public void testVarPropertyAgainstJavaField() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/varPropertyAgainstJavaField.kt");
}
@Test
@TestMetadata("varPropertyAgainstJavaGetterAndNonFinalField.kt")
public void testVarPropertyAgainstJavaGetterAndNonFinalField() throws Exception {
runTest("compiler/testData/diagnostics/tests/multiplatform/java/varPropertyAgainstJavaGetterAndNonFinalField.kt");
}
}
@Nested