Add completion test for annotation parameter
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
@mockLib.foo.Anno(<caret>)
|
||||
public class Testing {
|
||||
}
|
||||
|
||||
// EXIST: c
|
||||
// EXIST: d
|
||||
+3
-1
@@ -52,4 +52,6 @@ class F() {
|
||||
|
||||
interface MyInterface {
|
||||
fun foo() = 1
|
||||
}
|
||||
}
|
||||
|
||||
annotation class Anno(val c: Int = 3, val d: String)
|
||||
+6
@@ -35,6 +35,12 @@ public class CompiledKotlinInJavaCompletionTestGenerated extends AbstractCompile
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/injava"), Pattern.compile("^(.+)\\.java$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationParameter.java")
|
||||
public void testAnnotationParameter() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/injava/AnnotationParameter.java");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("Class.java")
|
||||
public void testClass() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/injava/Class.java");
|
||||
|
||||
+6
@@ -35,6 +35,12 @@ public class KotlinSourceInJavaCompletionTestGenerated extends AbstractKotlinSou
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/injava"), Pattern.compile("^(.+)\\.java$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationParameter.java")
|
||||
public void testAnnotationParameter() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/injava/AnnotationParameter.java");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("Class.java")
|
||||
public void testClass() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/injava/Class.java");
|
||||
|
||||
Reference in New Issue
Block a user