Move around some codegen box tests

In tests merged from boxAgainstJava in 29b96aa1, some directories were
named slightly differently compared to box, e.g. "property" vs
"properties", "varargs" vs "vararg". This change renames these, moves
some of the tests to more fitting directories, and also renames
"visibility" to "javaVisibility" because it's about Java visibilities
specifically.
This commit is contained in:
Alexander Udalov
2021-02-10 21:17:09 +01:00
parent 2d60fa787d
commit 510b9e6f2a
46 changed files with 1197 additions and 1767 deletions
@@ -11438,6 +11438,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
}
@TestMetadata("javaClassWithNestedEnum.kt")
public void testJavaClassWithNestedEnum() throws Exception {
runTest("compiler/testData/codegen/box/enum/javaClassWithNestedEnum.kt");
}
@TestMetadata("kt1119.kt")
public void testKt1119() throws Exception {
runTest("compiler/testData/codegen/box/enum/kt1119.kt");
@@ -13949,24 +13954,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
}
}
@TestMetadata("compiler/testData/codegen/box/inline")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Inline extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInline() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("kt19910.kt")
public void testKt19910() throws Exception {
runTest("compiler/testData/codegen/box/inline/kt19910.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/inlineClasses")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -16046,34 +16033,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
}
}
@TestMetadata("compiler/testData/codegen/box/innerClass")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InnerClass extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInnerClass() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("kt3532.kt")
public void testKt3532() throws Exception {
runTest("compiler/testData/codegen/box/innerClass/kt3532.kt");
}
@TestMetadata("kt3812.kt")
public void testKt3812() throws Exception {
runTest("compiler/testData/codegen/box/innerClass/kt3812.kt");
}
@TestMetadata("kt4036.kt")
public void testKt4036() throws Exception {
runTest("compiler/testData/codegen/box/innerClass/kt4036.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/innerNested")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -16156,11 +16115,26 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/innerNested/kt3132.kt");
}
@TestMetadata("kt3532.kt")
public void testKt3532() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/kt3532.kt");
}
@TestMetadata("kt3812.kt")
public void testKt3812() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/kt3812.kt");
}
@TestMetadata("kt3927.kt")
public void testKt3927() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/kt3927.kt");
}
@TestMetadata("kt4036.kt")
public void testKt4036() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/kt4036.kt");
}
@TestMetadata("kt5363.kt")
public void testKt5363() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
@@ -16381,29 +16355,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
}
}
@TestMetadata("compiler/testData/codegen/box/interfaces")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Interfaces extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInInterfaces() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaces"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("defaultMethod.kt")
public void testDefaultMethod() throws Exception {
runTest("compiler/testData/codegen/box/interfaces/defaultMethod.kt");
}
@TestMetadata("inheritJavaInterface.kt")
public void testInheritJavaInterface() throws Exception {
runTest("compiler/testData/codegen/box/interfaces/inheritJavaInterface.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/intrinsics")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -17517,6 +17468,183 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
}
}
@TestMetadata("compiler/testData/codegen/box/javaVisibility")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JavaVisibility extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInJavaVisibility() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("compiler/testData/codegen/box/javaVisibility/package")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Package extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPackage() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility/package"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("kt2781.kt")
public void testKt2781() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/package/kt2781.kt");
}
@TestMetadata("packageClass.kt")
public void testPackageClass() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/package/packageClass.kt");
}
@TestMetadata("packageFun.kt")
public void testPackageFun() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/package/packageFun.kt");
}
@TestMetadata("packageProperty.kt")
public void testPackageProperty() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/package/packageProperty.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/javaVisibility/protectedAndPackage")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ProtectedAndPackage extends AbstractLightAnalysisModeTest {
@TestMetadata("kt42012.kt")
public void ignoreKt42012() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/kt42012.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInProtectedAndPackage() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility/protectedAndPackage"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("overrideProtectedFunInPackage.kt")
public void testOverrideProtectedFunInPackage() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/overrideProtectedFunInPackage.kt");
}
@TestMetadata("protectedAccessor.kt")
public void testProtectedAccessor() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedAccessor.kt");
}
@TestMetadata("protectedFunInPackage.kt")
public void testProtectedFunInPackage() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedFunInPackage.kt");
}
@TestMetadata("protectedPropertyInPackage.kt")
public void testProtectedPropertyInPackage() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedPropertyInPackage.kt");
}
@TestMetadata("protectedPropertyInPackageFromCrossinline.kt")
public void testProtectedPropertyInPackageFromCrossinline() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedPropertyInPackageFromCrossinline.kt");
}
@TestMetadata("protectedStaticClass.kt")
public void testProtectedStaticClass() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedStaticClass.kt");
}
@TestMetadata("protectedSuperField.kt")
public void testProtectedSuperField() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedSuperField.kt");
}
@TestMetadata("protectedSuperMethod.kt")
public void testProtectedSuperMethod() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedAndPackage/protectedSuperMethod.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/javaVisibility/protectedStatic")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ProtectedStatic extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInProtectedStatic() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility/protectedStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("funCallInConstructor.kt")
public void testFunCallInConstructor() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funCallInConstructor.kt");
}
@TestMetadata("funClassObject.kt")
public void testFunClassObject() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funClassObject.kt");
}
@TestMetadata("funGenericClass.kt")
public void testFunGenericClass() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funGenericClass.kt");
}
@TestMetadata("funNestedStaticClass.kt")
public void testFunNestedStaticClass() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funNestedStaticClass.kt");
}
@TestMetadata("funNestedStaticClass2.kt")
public void testFunNestedStaticClass2() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funNestedStaticClass2.kt");
}
@TestMetadata("funNestedStaticGenericClass.kt")
public void testFunNestedStaticGenericClass() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funNestedStaticGenericClass.kt");
}
@TestMetadata("funNotDirectSuperClass.kt")
public void testFunNotDirectSuperClass() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funNotDirectSuperClass.kt");
}
@TestMetadata("funObject.kt")
public void testFunObject() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/funObject.kt");
}
@TestMetadata("simpleClass.kt")
public void testSimpleClass() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/simpleClass.kt");
}
@TestMetadata("simpleClass2.kt")
public void testSimpleClass2() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/simpleClass2.kt");
}
@TestMetadata("simpleFun.kt")
public void testSimpleFun() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/simpleFun.kt");
}
@TestMetadata("simpleProperty.kt")
public void testSimpleProperty() throws Exception {
runTest("compiler/testData/codegen/box/javaVisibility/protectedStatic/simpleProperty.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/jdk")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -22454,6 +22582,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/properties/field.kt");
}
@TestMetadata("fieldAccessFromExtensionInTraitImpl.kt")
public void testFieldAccessFromExtensionInTraitImpl() throws Exception {
runTest("compiler/testData/codegen/box/properties/fieldAccessFromExtensionInTraitImpl.kt");
}
@TestMetadata("fieldAccessViaSubclass.kt")
public void testFieldAccessViaSubclass() throws Exception {
runTest("compiler/testData/codegen/box/properties/fieldAccessViaSubclass.kt");
}
@TestMetadata("fieldInClass.kt")
public void testFieldInClass() throws Exception {
runTest("compiler/testData/codegen/box/properties/fieldInClass.kt");
@@ -22734,6 +22872,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/properties/protectedJavaPropertyInCompanion.kt");
}
@TestMetadata("referenceToJavaFieldViaBridge.kt")
public void testReferenceToJavaFieldViaBridge() throws Exception {
runTest("compiler/testData/codegen/box/properties/referenceToJavaFieldViaBridge.kt");
}
@TestMetadata("substituteJavaSuperField.kt")
public void testSubstituteJavaSuperField() throws Exception {
runTest("compiler/testData/codegen/box/properties/substituteJavaSuperField.kt");
@@ -23040,34 +23183,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
}
}
@TestMetadata("compiler/testData/codegen/box/property")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Property extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInProperty() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("fieldAccessFromExtensionInTraitImpl.kt")
public void testFieldAccessFromExtensionInTraitImpl() throws Exception {
runTest("compiler/testData/codegen/box/property/fieldAccessFromExtensionInTraitImpl.kt");
}
@TestMetadata("fieldAccessViaSubclass.kt")
public void testFieldAccessViaSubclass() throws Exception {
runTest("compiler/testData/codegen/box/property/fieldAccessViaSubclass.kt");
}
@TestMetadata("referenceToJavaFieldViaBridge.kt")
public void testReferenceToJavaFieldViaBridge() throws Exception {
runTest("compiler/testData/codegen/box/property/referenceToJavaFieldViaBridge.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/publishedApi")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -28909,6 +29024,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/sam/kt17091_4.kt");
}
@TestMetadata("kt19910.kt")
public void testKt19910() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt19910.kt");
}
@TestMetadata("kt22906.kt")
public void testKt22906() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt22906.kt");
@@ -29945,24 +30065,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
}
}
@TestMetadata("compiler/testData/codegen/box/staticFun")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class StaticFun extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInStaticFun() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/staticFun"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("classWithNestedEnum.kt")
public void testClassWithNestedEnum() throws Exception {
runTest("compiler/testData/codegen/box/staticFun/classWithNestedEnum.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/statics")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -30876,6 +30978,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/traits/defaultImplCall.kt");
}
@TestMetadata("defaultMethod.kt")
public void testDefaultMethod() throws Exception {
runTest("compiler/testData/codegen/box/traits/defaultMethod.kt");
}
@TestMetadata("diamondPropertyAccessors.kt")
public void testDiamondPropertyAccessors() throws Exception {
runTest("compiler/testData/codegen/box/traits/diamondPropertyAccessors.kt");
@@ -30906,6 +31013,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/traits/inheritJavaInterface.kt");
}
@TestMetadata("inheritJavaInterface_AgainstCompiled.kt")
public void testInheritJavaInterface_AgainstCompiled() throws Exception {
runTest("compiler/testData/codegen/box/traits/inheritJavaInterface_AgainstCompiled.kt");
}
@TestMetadata("inheritedFun.kt")
public void testInheritedFun() throws Exception {
runTest("compiler/testData/codegen/box/traits/inheritedFun.kt");
@@ -31802,210 +31914,20 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
public void testVarargsAndFunctionLiterals() throws Exception {
runTest("compiler/testData/codegen/box/vararg/varargsAndFunctionLiterals.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/varargs")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Varargs extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInVarargs() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("varargsOverride.kt")
public void testVarargsOverride() throws Exception {
runTest("compiler/testData/codegen/box/varargs/varargsOverride.kt");
runTest("compiler/testData/codegen/box/vararg/varargsOverride.kt");
}
@TestMetadata("varargsOverride2.kt")
public void testVarargsOverride2() throws Exception {
runTest("compiler/testData/codegen/box/varargs/varargsOverride2.kt");
runTest("compiler/testData/codegen/box/vararg/varargsOverride2.kt");
}
@TestMetadata("varargsOverride3.kt")
public void testVarargsOverride3() throws Exception {
runTest("compiler/testData/codegen/box/varargs/varargsOverride3.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/visibility")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Visibility extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInVisibility() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/visibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("compiler/testData/codegen/box/visibility/package")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Package extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInPackage() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/visibility/package"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("kt2781.kt")
public void testKt2781() throws Exception {
runTest("compiler/testData/codegen/box/visibility/package/kt2781.kt");
}
@TestMetadata("packageClass.kt")
public void testPackageClass() throws Exception {
runTest("compiler/testData/codegen/box/visibility/package/packageClass.kt");
}
@TestMetadata("packageFun.kt")
public void testPackageFun() throws Exception {
runTest("compiler/testData/codegen/box/visibility/package/packageFun.kt");
}
@TestMetadata("packageProperty.kt")
public void testPackageProperty() throws Exception {
runTest("compiler/testData/codegen/box/visibility/package/packageProperty.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/visibility/protectedAndPackage")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ProtectedAndPackage extends AbstractLightAnalysisModeTest {
@TestMetadata("kt42012.kt")
public void ignoreKt42012() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedAndPackage/kt42012.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInProtectedAndPackage() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/visibility/protectedAndPackage"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("overrideProtectedFunInPackage.kt")
public void testOverrideProtectedFunInPackage() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedAndPackage/overrideProtectedFunInPackage.kt");
}
@TestMetadata("protectedAccessor.kt")
public void testProtectedAccessor() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedAndPackage/protectedAccessor.kt");
}
@TestMetadata("protectedFunInPackage.kt")
public void testProtectedFunInPackage() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedAndPackage/protectedFunInPackage.kt");
}
@TestMetadata("protectedPropertyInPackage.kt")
public void testProtectedPropertyInPackage() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedAndPackage/protectedPropertyInPackage.kt");
}
@TestMetadata("protectedPropertyInPackageFromCrossinline.kt")
public void testProtectedPropertyInPackageFromCrossinline() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedAndPackage/protectedPropertyInPackageFromCrossinline.kt");
}
@TestMetadata("protectedStaticClass.kt")
public void testProtectedStaticClass() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedAndPackage/protectedStaticClass.kt");
}
@TestMetadata("protectedSuperField.kt")
public void testProtectedSuperField() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedAndPackage/protectedSuperField.kt");
}
@TestMetadata("protectedSuperMethod.kt")
public void testProtectedSuperMethod() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedAndPackage/protectedSuperMethod.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/visibility/protectedStatic")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ProtectedStatic extends AbstractLightAnalysisModeTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInProtectedStatic() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/visibility/protectedStatic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("funCallInConstructor.kt")
public void testFunCallInConstructor() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedStatic/funCallInConstructor.kt");
}
@TestMetadata("funClassObject.kt")
public void testFunClassObject() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedStatic/funClassObject.kt");
}
@TestMetadata("funGenericClass.kt")
public void testFunGenericClass() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedStatic/funGenericClass.kt");
}
@TestMetadata("funNestedStaticClass.kt")
public void testFunNestedStaticClass() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedStatic/funNestedStaticClass.kt");
}
@TestMetadata("funNestedStaticClass2.kt")
public void testFunNestedStaticClass2() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedStatic/funNestedStaticClass2.kt");
}
@TestMetadata("funNestedStaticGenericClass.kt")
public void testFunNestedStaticGenericClass() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedStatic/funNestedStaticGenericClass.kt");
}
@TestMetadata("funNotDirectSuperClass.kt")
public void testFunNotDirectSuperClass() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedStatic/funNotDirectSuperClass.kt");
}
@TestMetadata("funObject.kt")
public void testFunObject() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedStatic/funObject.kt");
}
@TestMetadata("simpleClass.kt")
public void testSimpleClass() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedStatic/simpleClass.kt");
}
@TestMetadata("simpleClass2.kt")
public void testSimpleClass2() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedStatic/simpleClass2.kt");
}
@TestMetadata("simpleFun.kt")
public void testSimpleFun() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedStatic/simpleFun.kt");
}
@TestMetadata("simpleProperty.kt")
public void testSimpleProperty() throws Exception {
runTest("compiler/testData/codegen/box/visibility/protectedStatic/simpleProperty.kt");
}
runTest("compiler/testData/codegen/box/vararg/varargsOverride3.kt");
}
}