Lines 8816-8819
Link Here
|
8816 |
"Test2[TYPE_REF]{Test2, test, Ltest.Test2;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_EXACT_NAME + R_EXPECTED_TYPE + R_UNQUALIFIED + R_NON_RESTRICTED) + "}", |
8816 |
"Test2[TYPE_REF]{Test2, test, Ltest.Test2;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_EXACT_NAME + R_EXPECTED_TYPE + R_UNQUALIFIED + R_NON_RESTRICTED) + "}", |
8817 |
requestor.getResults()); |
8817 |
requestor.getResults()); |
8818 |
} |
8818 |
} |
|
|
8819 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=154993 |
8820 |
public void test0297() throws JavaModelException { |
8821 |
this.workingCopies = new ICompilationUnit[2]; |
8822 |
this.workingCopies[0] = getWorkingCopy( |
8823 |
"/Completion/src3/test/Test.java", |
8824 |
"package test;\n" + |
8825 |
"public class Test {\n" + |
8826 |
" String description = \"Some description\";\n" + |
8827 |
" @Description(this.description)\n" + |
8828 |
" public void method() {\n" + |
8829 |
" }"); |
8830 |
|
8831 |
this.workingCopies[1] = getWorkingCopy( |
8832 |
"/Completion/src3/test/Description.java", |
8833 |
"package test;\n" + |
8834 |
"public @interface Description {\n" + |
8835 |
" String value();\n" + |
8836 |
"}"); |
8837 |
|
8838 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
8839 |
String str = this.workingCopies[0].getSource(); |
8840 |
String completeBehind = "this."; |
8841 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
8842 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
8843 |
|
8844 |
assertResults( |
8845 |
"", |
8846 |
requestor.getResults()); |
8847 |
} |
8819 |
} |
8848 |
} |