Run LoadJava.CompiledKotlin test group with stdlib if some enum is inside
This commit makes compiler tests working similarly to ResolveByStub IDE tests.
This commit is contained in:
-83
@@ -53,11 +53,6 @@ public class JvmRuntimeDescriptorLoaderTestGenerated extends AbstractJvmRuntimeD
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotatedMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationInAnnotationArguments.kt")
|
||||
public void testAnnotationInAnnotationArguments() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotationInAnnotationArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationInArray.kt")
|
||||
public void testAnnotationInArray() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotationInArray.kt");
|
||||
@@ -68,11 +63,6 @@ public class JvmRuntimeDescriptorLoaderTestGenerated extends AbstractJvmRuntimeD
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/annotations/ClassLiteralArguments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumArgumentWithCustomToString.kt")
|
||||
public void testEnumArgumentWithCustomToString() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/annotations/EnumArgumentWithCustomToString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MultiDimensionalArrayMethod.kt")
|
||||
public void testMultiDimensionalArrayMethod() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/annotations/MultiDimensionalArrayMethod.kt");
|
||||
@@ -125,11 +115,6 @@ public class JvmRuntimeDescriptorLoaderTestGenerated extends AbstractJvmRuntimeD
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/EnumArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumEntry.kt")
|
||||
public void testEnumEntry() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/EnumEntry.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Function.kt")
|
||||
public void testFunction() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Function.kt");
|
||||
@@ -319,11 +304,6 @@ public class JvmRuntimeDescriptorLoaderTestGenerated extends AbstractJvmRuntimeD
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/Constructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumConstructor.kt")
|
||||
public void testEnumConstructor() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/EnumConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExtensionFunction.kt")
|
||||
public void testExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionFunction.kt");
|
||||
@@ -607,16 +587,6 @@ public class JvmRuntimeDescriptorLoaderTestGenerated extends AbstractJvmRuntimeD
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/class/ClassTwoParams2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumWithGenericConstructorParameter.kt")
|
||||
public void testEnumWithGenericConstructorParameter() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/class/EnumWithGenericConstructorParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumWithPrimitiveConstructorParameter.kt")
|
||||
public void testEnumWithPrimitiveConstructorParameter() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/class/EnumWithPrimitiveConstructorParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FunInterface.kt")
|
||||
public void testFunInterface() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/class/FunInterface.kt");
|
||||
@@ -1067,49 +1037,6 @@ public class JvmRuntimeDescriptorLoaderTestGenerated extends AbstractJvmRuntimeD
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava/compiledKotlin/enum")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Enum extends AbstractJvmRuntimeDescriptorLoaderTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInEnum() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/enum"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("enumVisibility.kt")
|
||||
public void testEnumVisibility() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/enum/enumVisibility.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumWithConstuctor.kt")
|
||||
public void testEnumWithConstuctor() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/enum/enumWithConstuctor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumWithInnerClasses.kt")
|
||||
public void testEnumWithInnerClasses() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/enum/enumWithInnerClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerEnum.kt")
|
||||
public void testInnerEnum() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/enum/innerEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerEnumExistingClassObject.kt")
|
||||
public void testInnerEnumExistingClassObject() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/enum/innerEnumExistingClassObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleEnum.kt")
|
||||
public void testSimpleEnum() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/enum/simpleEnum.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
@@ -1177,11 +1104,6 @@ public class JvmRuntimeDescriptorLoaderTestGenerated extends AbstractJvmRuntimeD
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefSelfAndClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FieldAsVar.kt")
|
||||
public void testFieldAsVar() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FieldAsVar.kt");
|
||||
@@ -2345,11 +2267,6 @@ public class JvmRuntimeDescriptorLoaderTestGenerated extends AbstractJvmRuntimeD
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/callablesNameClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumEntries.kt")
|
||||
public void testEnumEntries() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/enumEntries.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionMembers.kt")
|
||||
public void testExtensionMembers() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/extensionMembers.kt");
|
||||
|
||||
Reference in New Issue
Block a user