Regenerate tests

This commit is contained in:
Zalim Bashorov
2018-04-13 19:30:55 +03:00
parent a63b2e1bbd
commit ab03ab84bb
296 changed files with 76225 additions and 123189 deletions
@@ -21,43 +21,41 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class BlackBoxCodegenTestForNoArgGenerated extends AbstractBlackBoxCodegenTestForNoArg {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInBox() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/noarg/noarg-cli/testData/box"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
}
@TestMetadata("initializers.kt")
public void testInitializers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/box/initializers.kt");
doTest(fileName);
runTest("plugins/noarg/noarg-cli/testData/box/initializers.kt");
}
@TestMetadata("initializersWithoutInvokeInitializers.kt")
public void testInitializersWithoutInvokeInitializers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/box/initializersWithoutInvokeInitializers.kt");
doTest(fileName);
runTest("plugins/noarg/noarg-cli/testData/box/initializersWithoutInvokeInitializers.kt");
}
@TestMetadata("kt18245.kt")
public void testKt18245() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/box/kt18245.kt");
doTest(fileName);
runTest("plugins/noarg/noarg-cli/testData/box/kt18245.kt");
}
@TestMetadata("kt18667.kt")
public void testKt18667() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/box/kt18667.kt");
doTest(fileName);
runTest("plugins/noarg/noarg-cli/testData/box/kt18667.kt");
}
@TestMetadata("kt18668.kt")
public void testKt18668() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/box/kt18668.kt");
doTest(fileName);
runTest("plugins/noarg/noarg-cli/testData/box/kt18668.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/box/simple.kt");
doTest(fileName);
runTest("plugins/noarg/noarg-cli/testData/box/simple.kt");
}
}
@@ -21,49 +21,46 @@ import java.util.regex.Pattern;
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class BytecodeListingTestForNoArgGenerated extends AbstractBytecodeListingTestForNoArg {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInBytecodeListing() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/noarg/noarg-cli/testData/bytecodeListing"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("annoOnNotClass.kt")
public void testAnnoOnNotClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/bytecodeListing/annoOnNotClass.kt");
doTest(fileName);
runTest("plugins/noarg/noarg-cli/testData/bytecodeListing/annoOnNotClass.kt");
}
@TestMetadata("defaultParameters.kt")
public void testDefaultParameters() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/bytecodeListing/defaultParameters.kt");
doTest(fileName);
runTest("plugins/noarg/noarg-cli/testData/bytecodeListing/defaultParameters.kt");
}
@TestMetadata("inherited.kt")
public void testInherited() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/bytecodeListing/inherited.kt");
doTest(fileName);
runTest("plugins/noarg/noarg-cli/testData/bytecodeListing/inherited.kt");
}
@TestMetadata("noNoArg.kt")
public void testNoNoArg() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/bytecodeListing/noNoArg.kt");
doTest(fileName);
runTest("plugins/noarg/noarg-cli/testData/bytecodeListing/noNoArg.kt");
}
@TestMetadata("severalNoArg.kt")
public void testSeveralNoArg() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/bytecodeListing/severalNoArg.kt");
doTest(fileName);
runTest("plugins/noarg/noarg-cli/testData/bytecodeListing/severalNoArg.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/bytecodeListing/simple.kt");
doTest(fileName);
runTest("plugins/noarg/noarg-cli/testData/bytecodeListing/simple.kt");
}
@TestMetadata("superTypes.kt")
public void testSuperTypes() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/bytecodeListing/superTypes.kt");
doTest(fileName);
runTest("plugins/noarg/noarg-cli/testData/bytecodeListing/superTypes.kt");
}
}