Add test for synthetic java property completion to multi-file tests
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// FIR_COMPARISON
|
||||
|
||||
fun foo(a: java.lang.Thread) {
|
||||
a.na<caret>
|
||||
}
|
||||
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
class JavaClassWithGetterAndSetter {
|
||||
int getNumber() { return 0; }
|
||||
void setNumber(int number) {}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// FIR_COMPARISON
|
||||
fun usage(obj: JavaClassWithGetterAndSetter) {
|
||||
obj.<caret>
|
||||
}
|
||||
|
||||
// EXIST: {"lookupString":"number","tailText":" (from getNumber()/setNumber())", "allLookupStrings":"getNumber, number, setNumber","itemText":"number"}
|
||||
+5
@@ -379,6 +379,11 @@ public class MultiFileJvmBasicCompletionTestGenerated extends AbstractMultiFileJ
|
||||
runTest("idea/idea-completion/testData/basic/multifile/SyntheticExtensionNonVoidSetter/");
|
||||
}
|
||||
|
||||
@TestMetadata("SyntheticPrimitiveJavaProperty")
|
||||
public void testSyntheticPrimitiveJavaProperty() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/multifile/SyntheticPrimitiveJavaProperty/");
|
||||
}
|
||||
|
||||
@TestMetadata("TopLevelFunction")
|
||||
public void testTopLevelFunction() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/multifile/TopLevelFunction/");
|
||||
|
||||
+5
@@ -379,6 +379,11 @@ public class HighLevelMultiFileJvmBasicCompletionTestGenerated extends AbstractH
|
||||
runTest("idea/idea-completion/testData/basic/multifile/SyntheticExtensionNonVoidSetter/");
|
||||
}
|
||||
|
||||
@TestMetadata("SyntheticPrimitiveJavaProperty")
|
||||
public void testSyntheticPrimitiveJavaProperty() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/multifile/SyntheticPrimitiveJavaProperty/");
|
||||
}
|
||||
|
||||
@TestMetadata("TopLevelFunction")
|
||||
public void testTopLevelFunction() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/multifile/TopLevelFunction/");
|
||||
|
||||
Reference in New Issue
Block a user