Lines 8784-8787
Link Here
|
8784 |
"test0.test1[PACKAGE_REF]{test0.test1., test0.test1, null, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_NON_RESTRICTED) + "}", |
8784 |
"test0.test1[PACKAGE_REF]{test0.test1., test0.test1, null, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_NON_RESTRICTED) + "}", |
8785 |
requestor.getResults()); |
8785 |
requestor.getResults()); |
8786 |
} |
8786 |
} |
|
|
8787 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=161557 |
8788 |
public void test0294() throws JavaModelException { |
8789 |
this.workingCopies = new ICompilationUnit[3]; |
8790 |
this.workingCopies[0] = getWorkingCopy( |
8791 |
"/Completion/src3/test/Test.java", |
8792 |
"package test;\n" + |
8793 |
"public class Test {\n" + |
8794 |
" Test1<Test2> var[];\n" + |
8795 |
"}"); |
8796 |
|
8797 |
this.workingCopies[1] = getWorkingCopy( |
8798 |
"/Completion/src3/test/Test1.java", |
8799 |
"package test;\n" + |
8800 |
"public class Test1<TTest1> {\n" + |
8801 |
"}"); |
8802 |
|
8803 |
this.workingCopies[1] = getWorkingCopy( |
8804 |
"/Completion/src3/test/Test2.java", |
8805 |
"package test;\n" + |
8806 |
"public class Test2 {\n" + |
8807 |
"}"); |
8808 |
|
8809 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
8810 |
String str = this.workingCopies[0].getSource(); |
8811 |
String completeBehind = "Test2"; |
8812 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
8813 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
8814 |
|
8815 |
assertResults( |
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()); |
8818 |
} |
8787 |
} |
8819 |
} |