Changed test data to not use deprecated api

This commit is contained in:
Valentin Kipyatkov
2015-10-15 19:17:26 +03:00
parent 36b3b16cb5
commit e2c7ba7f40
9 changed files with 42 additions and 40 deletions
@@ -0,0 +1,5 @@
class A {
@Inh<caret>
}
// ELEMENT: Inherited
@@ -0,0 +1,7 @@
import java.lang.annotation.Inherited
class A {
@Inherited<caret>
}
// ELEMENT: Inherited
@@ -0,0 +1,9 @@
import java.lang.annotation.Inherited
class A {
companion object {
@Inh<caret>
}
}
// ELEMENT: Inherited
@@ -0,0 +1,9 @@
import java.lang.annotation.Inherited
class A {
companion object {
@Inherited<caret>
}
}
// ELEMENT: Inherited
@@ -1,5 +0,0 @@
class A {
@pl<caret>
}
// ELEMENT: platformStatic
@@ -1,7 +0,0 @@
import kotlin.platform.platformStatic
class A {
@platformStatic<caret>
}
// ELEMENT: platformStatic
@@ -1,7 +0,0 @@
class A {
companion object {
@pl<caret>
}
}
// ELEMENT: platformStatic
@@ -1,9 +0,0 @@
import kotlin.platform.platformStatic
class A {
companion object {
@platformStatic<caret>
}
}
// ELEMENT: platformStatic
@@ -35,6 +35,18 @@ public class BasicCompletionHandlerTestGenerated extends AbstractBasicCompletion
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/handlers/basic"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("AnnotationInClassAddImport.kt")
public void testAnnotationInClassAddImport() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/AnnotationInClassAddImport.kt");
doTest(fileName);
}
@TestMetadata("AnnotationInCompanionObjectAddImport.kt")
public void testAnnotationInCompanionObjectAddImport() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/AnnotationInCompanionObjectAddImport.kt");
doTest(fileName);
}
@TestMetadata("ClassWithClassObject.kt")
public void testClassWithClassObject() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/ClassWithClassObject.kt");
@@ -95,18 +107,6 @@ public class BasicCompletionHandlerTestGenerated extends AbstractBasicCompletion
doTest(fileName);
}
@TestMetadata("PlatformStaticInClass.kt")
public void testPlatformStaticInClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/PlatformStaticInClass.kt");
doTest(fileName);
}
@TestMetadata("PlatformStaticInCompanionObject.kt")
public void testPlatformStaticInCompanionObject() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/PlatformStaticInCompanionObject.kt");
doTest(fileName);
}
@TestMetadata("PreferMatchingKeyword.kt")
public void testPreferMatchingKeyword() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/PreferMatchingKeyword.kt");