Code clean, small refactorings and tests

#KT-8987 Fixed
This commit is contained in:
Michael Bogdanov
2015-10-01 12:15:05 +03:00
parent 3806ad65fc
commit cd78514b76
26 changed files with 451 additions and 143 deletions
@@ -251,6 +251,39 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
doTest(fileName);
}
@TestMetadata("compiler/testData/codegen/bytecodeText/argumentOrder")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ArgumentOrder extends AbstractBytecodeTextTest {
public void testAllFilesPresentInArgumentOrder() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("argumentReorder.kt")
public void testArgumentReorder() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/argumentOrder/argumentReorder.kt");
doTest(fileName);
}
@TestMetadata("argumentReorderWithDefault.kt")
public void testArgumentReorderWithDefault() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/argumentOrder/argumentReorderWithDefault.kt");
doTest(fileName);
}
@TestMetadata("sameOrder.kt")
public void testSameOrder() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/argumentOrder/sameOrder.kt");
doTest(fileName);
}
@TestMetadata("sameOrderWithDefault.kt")
public void testSameOrderWithDefault() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/argumentOrder/sameOrderWithDefault.kt");
doTest(fileName);
}
}
@TestMetadata("compiler/testData/codegen/bytecodeText/boxingOptimization")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)