Regenerate tests
This commit is contained in:
Generated
+18
-28
@@ -21,91 +21,81 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class KotlinMavenInspectionTestGenerated extends AbstractKotlinMavenInspectionTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMaven_inspections() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentInSingleGeneratedClass(this.getClass(), new File("idea/idea-maven/testData/maven-inspections"), Pattern.compile("^([\\w\\-]+).xml$"), TargetBackend.ANY);
|
||||
}
|
||||
|
||||
@TestMetadata("bothCompileAndTestCompileInTheSameExecution.xml")
|
||||
public void testBothCompileAndTestCompileInTheSameExecution() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/maven-inspections/bothCompileAndTestCompileInTheSameExecution.xml");
|
||||
doTest(fileName);
|
||||
runTest("idea/idea-maven/testData/maven-inspections/bothCompileAndTestCompileInTheSameExecution.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("dependencyWithNoExecution.xml")
|
||||
public void testDependencyWithNoExecution() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/maven-inspections/dependencyWithNoExecution.xml");
|
||||
doTest(fileName);
|
||||
runTest("idea/idea-maven/testData/maven-inspections/dependencyWithNoExecution.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("deprecatedJre.xml")
|
||||
public void testDeprecatedJre() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/maven-inspections/deprecatedJre.xml");
|
||||
doTest(fileName);
|
||||
runTest("idea/idea-maven/testData/maven-inspections/deprecatedJre.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("deprecatedJreWithDependencyManagement.xml")
|
||||
public void testDeprecatedJreWithDependencyManagement() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/maven-inspections/deprecatedJreWithDependencyManagement.xml");
|
||||
doTest(fileName);
|
||||
runTest("idea/idea-maven/testData/maven-inspections/deprecatedJreWithDependencyManagement.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("ideAndMavenVersions.xml")
|
||||
public void testIdeAndMavenVersions() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/maven-inspections/ideAndMavenVersions.xml");
|
||||
doTest(fileName);
|
||||
runTest("idea/idea-maven/testData/maven-inspections/ideAndMavenVersions.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("ideAndMavenVersionsSuppression.xml")
|
||||
public void testIdeAndMavenVersionsSuppression() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/maven-inspections/ideAndMavenVersionsSuppression.xml");
|
||||
doTest(fileName);
|
||||
runTest("idea/idea-maven/testData/maven-inspections/ideAndMavenVersionsSuppression.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinTestWithJunit.xml")
|
||||
public void testKotlinTestWithJunit() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/maven-inspections/kotlinTestWithJunit.xml");
|
||||
doTest(fileName);
|
||||
runTest("idea/idea-maven/testData/maven-inspections/kotlinTestWithJunit.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("missingDependencies.xml")
|
||||
public void testMissingDependencies() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/maven-inspections/missingDependencies.xml");
|
||||
doTest(fileName);
|
||||
runTest("idea/idea-maven/testData/maven-inspections/missingDependencies.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("noExecutions.xml")
|
||||
public void testNoExecutions() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/maven-inspections/noExecutions.xml");
|
||||
doTest(fileName);
|
||||
runTest("idea/idea-maven/testData/maven-inspections/noExecutions.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("oldVersionWithJre.xml")
|
||||
public void testOldVersionWithJre() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/maven-inspections/oldVersionWithJre.xml");
|
||||
doTest(fileName);
|
||||
runTest("idea/idea-maven/testData/maven-inspections/oldVersionWithJre.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("sameVersionPluginLibrary.xml")
|
||||
public void testSameVersionPluginLibrary() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/maven-inspections/sameVersionPluginLibrary.xml");
|
||||
doTest(fileName);
|
||||
runTest("idea/idea-maven/testData/maven-inspections/sameVersionPluginLibrary.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("sameVersionPluginLibrarySuppression.xml")
|
||||
public void testSameVersionPluginLibrarySuppression() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/maven-inspections/sameVersionPluginLibrarySuppression.xml");
|
||||
doTest(fileName);
|
||||
runTest("idea/idea-maven/testData/maven-inspections/sameVersionPluginLibrarySuppression.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("wrongJsExecution.xml")
|
||||
public void testWrongJsExecution() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/maven-inspections/wrongJsExecution.xml");
|
||||
doTest(fileName);
|
||||
runTest("idea/idea-maven/testData/maven-inspections/wrongJsExecution.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("wrongPhaseExecution.xml")
|
||||
public void testWrongPhaseExecution() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/maven-inspections/wrongPhaseExecution.xml");
|
||||
doTest(fileName);
|
||||
runTest("idea/idea-maven/testData/maven-inspections/wrongPhaseExecution.xml");
|
||||
}
|
||||
}
|
||||
|
||||
+21
-26
@@ -23,62 +23,57 @@ public class MavenConfigureProjectByChangingFileTestGenerated extends AbstractMa
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jvm extends AbstractMavenConfigureProjectByChangingFileTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithMaven, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvm() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-maven/testData/configurator/jvm"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
|
||||
}
|
||||
|
||||
@TestMetadata("fixExisting")
|
||||
public void testFixExisting() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/configurator/jvm/fixExisting/");
|
||||
doTestWithMaven(fileName);
|
||||
runTest("idea/idea-maven/testData/configurator/jvm/fixExisting/");
|
||||
}
|
||||
|
||||
@TestMetadata("jreLib")
|
||||
public void testJreLib() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/configurator/jvm/jreLib/");
|
||||
doTestWithMaven(fileName);
|
||||
runTest("idea/idea-maven/testData/configurator/jvm/jreLib/");
|
||||
}
|
||||
|
||||
@TestMetadata("libraryMissed")
|
||||
public void testLibraryMissed() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/configurator/jvm/libraryMissed/");
|
||||
doTestWithMaven(fileName);
|
||||
runTest("idea/idea-maven/testData/configurator/jvm/libraryMissed/");
|
||||
}
|
||||
|
||||
@TestMetadata("pluginMissed")
|
||||
public void testPluginMissed() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/configurator/jvm/pluginMissed/");
|
||||
doTestWithMaven(fileName);
|
||||
runTest("idea/idea-maven/testData/configurator/jvm/pluginMissed/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProject")
|
||||
public void testSimpleProject() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/configurator/jvm/simpleProject/");
|
||||
doTestWithMaven(fileName);
|
||||
runTest("idea/idea-maven/testData/configurator/jvm/simpleProject/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProjectEAP")
|
||||
public void testSimpleProjectEAP() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/configurator/jvm/simpleProjectEAP/");
|
||||
doTestWithMaven(fileName);
|
||||
runTest("idea/idea-maven/testData/configurator/jvm/simpleProjectEAP/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProjectRc")
|
||||
public void testSimpleProjectRc() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/configurator/jvm/simpleProjectRc/");
|
||||
doTestWithMaven(fileName);
|
||||
runTest("idea/idea-maven/testData/configurator/jvm/simpleProjectRc/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProjectSnapshot")
|
||||
public void testSimpleProjectSnapshot() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/configurator/jvm/simpleProjectSnapshot/");
|
||||
doTestWithMaven(fileName);
|
||||
runTest("idea/idea-maven/testData/configurator/jvm/simpleProjectSnapshot/");
|
||||
}
|
||||
|
||||
@TestMetadata("withJava9ModuleInfo")
|
||||
public void testWithJava9ModuleInfo() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/configurator/jvm/withJava9ModuleInfo/");
|
||||
doTestWithMaven(fileName);
|
||||
runTest("idea/idea-maven/testData/configurator/jvm/withJava9ModuleInfo/");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,32 +81,32 @@ public class MavenConfigureProjectByChangingFileTestGenerated extends AbstractMa
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Js extends AbstractMavenConfigureProjectByChangingFileTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithJSMaven, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJs() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-maven/testData/configurator/js"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
|
||||
}
|
||||
|
||||
@TestMetadata("libraryMissed")
|
||||
public void testLibraryMissed() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/configurator/js/libraryMissed/");
|
||||
doTestWithJSMaven(fileName);
|
||||
runTest("idea/idea-maven/testData/configurator/js/libraryMissed/");
|
||||
}
|
||||
|
||||
@TestMetadata("pluginMissed")
|
||||
public void testPluginMissed() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/configurator/js/pluginMissed/");
|
||||
doTestWithJSMaven(fileName);
|
||||
runTest("idea/idea-maven/testData/configurator/js/pluginMissed/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProject")
|
||||
public void testSimpleProject() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/configurator/js/simpleProject/");
|
||||
doTestWithJSMaven(fileName);
|
||||
runTest("idea/idea-maven/testData/configurator/js/simpleProject/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProjectSnapshot")
|
||||
public void testSimpleProjectSnapshot() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-maven/testData/configurator/js/simpleProjectSnapshot/");
|
||||
doTestWithJSMaven(fileName);
|
||||
runTest("idea/idea-maven/testData/configurator/js/simpleProjectSnapshot/");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user