Moved tests

This commit is contained in:
Valentin Kipyatkov
2016-10-10 16:27:10 +03:00
parent 16a0c55c6c
commit 0c14058d13
7 changed files with 27 additions and 18 deletions

View File

@@ -41,24 +41,6 @@ public class BasicCompletionHandlerTestGenerated extends AbstractBasicCompletion
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/handlers/basic"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("AnnotationInBrackets.kt")
public void testAnnotationInBrackets() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/AnnotationInBrackets.kt");
doTest(fileName);
}
@TestMetadata("AnnotationInClassAddImport.kt")
public void testAnnotationInClassAddImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/AnnotationInClassAddImport.kt");
doTest(fileName);
}
@TestMetadata("AnnotationInCompanionObjectAddImport.kt")
public void testAnnotationInCompanionObjectAddImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/AnnotationInCompanionObjectAddImport.kt");
doTest(fileName);
}
@TestMetadata("ClassKeywordBeforeName.kt")
public void testClassKeywordBeforeName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/ClassKeywordBeforeName.kt");
@@ -221,6 +203,33 @@ public class BasicCompletionHandlerTestGenerated extends AbstractBasicCompletion
doTest(fileName);
}
@TestMetadata("idea/idea-completion/testData/handlers/basic/annotation")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Annotation extends AbstractBasicCompletionHandlerTest {
public void testAllFilesPresentInAnnotation() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/handlers/basic/annotation"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("AnnotationInBrackets.kt")
public void testAnnotationInBrackets() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/annotation/AnnotationInBrackets.kt");
doTest(fileName);
}
@TestMetadata("AnnotationInClassAddImport.kt")
public void testAnnotationInClassAddImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/annotation/AnnotationInClassAddImport.kt");
doTest(fileName);
}
@TestMetadata("AnnotationInCompanionObjectAddImport.kt")
public void testAnnotationInCompanionObjectAddImport() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/annotation/AnnotationInCompanionObjectAddImport.kt");
doTest(fileName);
}
}
@TestMetadata("idea/idea-completion/testData/handlers/basic/callableReference")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)