Minor: rename test data file
This commit is contained in:
@@ -72,7 +72,7 @@ public class EnumGenTest extends CodegenTestCase {
|
||||
}
|
||||
|
||||
public void testYesClassForComplexEnum() throws Exception {
|
||||
loadFile("enum/abstractmethod.kt");
|
||||
loadFile("enum/openMethod.kt");
|
||||
Class<?> cls = generateClass("IssueState");
|
||||
Field field = cls.getField("DEFAULT");
|
||||
assertEquals("IssueState", field.get(null).getClass().getName());
|
||||
|
||||
+6
-6
@@ -2615,12 +2615,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("abstractmethod.kt")
|
||||
public void testAbstractmethod() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/enum/abstractmethod.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInEnum() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/enum"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
@@ -2703,6 +2697,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("openMethod.kt")
|
||||
public void testOpenMethod() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/enum/openMethod.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("ordinal.kt")
|
||||
public void testOrdinal() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/enum/ordinal.kt");
|
||||
|
||||
Reference in New Issue
Block a user