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
@@ -23,62 +23,57 @@ public class GradleConfigureProjectByChangingFileTestGenerated extends AbstractG
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Gradle extends AbstractGradleConfigureProjectByChangingFileTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTestGradle, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInGradle() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/configuration/gradle"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
}
@TestMetadata("default")
public void testDefault() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/configuration/gradle/default/");
doTestGradle(fileName);
runTest("idea/testData/configuration/gradle/default/");
}
@TestMetadata("eapVersion")
public void testEapVersion() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/configuration/gradle/eapVersion/");
doTestGradle(fileName);
runTest("idea/testData/configuration/gradle/eapVersion/");
}
@TestMetadata("jreLib")
public void testJreLib() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/configuration/gradle/jreLib/");
doTestGradle(fileName);
runTest("idea/testData/configuration/gradle/jreLib/");
}
@TestMetadata("js")
public void testJs() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/configuration/gradle/js/");
doTestGradle(fileName);
runTest("idea/testData/configuration/gradle/js/");
}
@TestMetadata("m04Version")
public void testM04Version() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/configuration/gradle/m04Version/");
doTestGradle(fileName);
runTest("idea/testData/configuration/gradle/m04Version/");
}
@TestMetadata("missedLibrary")
public void testMissedLibrary() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/configuration/gradle/missedLibrary/");
doTestGradle(fileName);
runTest("idea/testData/configuration/gradle/missedLibrary/");
}
@TestMetadata("plugin_present")
public void testPlugin_present() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/configuration/gradle/plugin_present/");
doTestGradle(fileName);
runTest("idea/testData/configuration/gradle/plugin_present/");
}
@TestMetadata("rcVersion")
public void testRcVersion() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/configuration/gradle/rcVersion/");
doTestGradle(fileName);
runTest("idea/testData/configuration/gradle/rcVersion/");
}
@TestMetadata("withJava9ModuleInfo")
public void testWithJava9ModuleInfo() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/configuration/gradle/withJava9ModuleInfo/");
doTestGradle(fileName);
runTest("idea/testData/configuration/gradle/withJava9ModuleInfo/");
}
}
@@ -86,38 +81,37 @@ public class GradleConfigureProjectByChangingFileTestGenerated extends AbstractG
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Gsk extends AbstractGradleConfigureProjectByChangingFileTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTestGradle, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInGsk() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/configuration/gsk"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
}
@TestMetadata("eap11Version")
public void testEap11Version() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/configuration/gsk/eap11Version/");
doTestGradle(fileName);
runTest("idea/testData/configuration/gsk/eap11Version/");
}
@TestMetadata("eapVersion")
public void testEapVersion() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/configuration/gsk/eapVersion/");
doTestGradle(fileName);
runTest("idea/testData/configuration/gsk/eapVersion/");
}
@TestMetadata("helloWorld")
public void testHelloWorld() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/configuration/gsk/helloWorld/");
doTestGradle(fileName);
runTest("idea/testData/configuration/gsk/helloWorld/");
}
@TestMetadata("missedLibrary")
public void testMissedLibrary() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/configuration/gsk/missedLibrary/");
doTestGradle(fileName);
runTest("idea/testData/configuration/gsk/missedLibrary/");
}
@TestMetadata("pluginPresent")
public void testPluginPresent() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/configuration/gsk/pluginPresent/");
doTestGradle(fileName);
runTest("idea/testData/configuration/gsk/pluginPresent/");
}
}
}