Moved tests

This commit is contained in:
Valentin Kipyatkov
2015-06-04 22:45:44 +03:00
parent 54e9a46f12
commit 0d992ee38f
8 changed files with 51 additions and 42 deletions
@@ -269,12 +269,6 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT
doTest(fileName);
}
@TestMetadata("NamedVarargAfterStar.kt")
public void testNamedVarargAfterStar() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/NamedVarargAfterStar.kt");
doTest(fileName);
}
@TestMetadata("NoExtensionMethodFromClassObject.kt")
public void testNoExtensionMethodFromClassObject() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/NoExtensionMethodFromClassObject.kt");
@@ -377,12 +371,6 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT
doTest(fileName);
}
@TestMetadata("SecondVararg.kt")
public void testSecondVararg() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/SecondVararg.kt");
doTest(fileName);
}
@TestMetadata("SkipDeclarationsOfType.kt")
public void testSkipDeclarationsOfType() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/SkipDeclarationsOfType.kt");
@@ -401,36 +389,6 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT
doTest(fileName);
}
@TestMetadata("Vararg1.kt")
public void testVararg1() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/Vararg1.kt");
doTest(fileName);
}
@TestMetadata("Vararg2.kt")
public void testVararg2() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/Vararg2.kt");
doTest(fileName);
}
@TestMetadata("Vararg3.kt")
public void testVararg3() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/Vararg3.kt");
doTest(fileName);
}
@TestMetadata("Vararg4.kt")
public void testVararg4() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/Vararg4.kt");
doTest(fileName);
}
@TestMetadata("VarargAfterStar.kt")
public void testVarargAfterStar() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/VarargAfterStar.kt");
doTest(fileName);
}
@TestMetadata("VariableAsFunction1.kt")
public void testVariableAsFunction1() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/VariableAsFunction1.kt");
@@ -1310,6 +1268,57 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT
}
}
@TestMetadata("idea/idea-completion/testData/smart/vararg")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Vararg extends AbstractJvmSmartCompletionTest {
@TestMetadata("1.kt")
public void test1() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/vararg/1.kt");
doTest(fileName);
}
@TestMetadata("2.kt")
public void test2() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/vararg/2.kt");
doTest(fileName);
}
@TestMetadata("3.kt")
public void test3() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/vararg/3.kt");
doTest(fileName);
}
@TestMetadata("4.kt")
public void test4() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/vararg/4.kt");
doTest(fileName);
}
@TestMetadata("AfterStar.kt")
public void testAfterStar() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/vararg/AfterStar.kt");
doTest(fileName);
}
public void testAllFilesPresentInVararg() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/smart/vararg"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("NamedArgumentAfterStar.kt")
public void testNamedArgumentAfterStar() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/vararg/NamedArgumentAfterStar.kt");
doTest(fileName);
}
@TestMetadata("SecondVararg.kt")
public void testSecondVararg() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/vararg/SecondVararg.kt");
doTest(fileName);
}
}
@TestMetadata("idea/idea-completion/testData/smart/whenEntry")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)