Lines 2091-2151
Link Here
|
2091 |
} |
2091 |
} |
2092 |
} |
2092 |
} |
2093 |
public void test0075() throws JavaModelException { |
2093 |
public void test0075() throws JavaModelException { |
2094 |
this.wc = getWorkingCopy( |
2094 |
this.workingCopies = new ICompilationUnit[2]; |
|
|
2095 |
this.workingCopies[0] = getWorkingCopy( |
2095 |
"/Completion/src3/test0075/Test.java", |
2096 |
"/Completion/src3/test0075/Test.java", |
2096 |
"package test0075;\n" + |
2097 |
"package test0075;\n" + |
2097 |
"public @QQAnnot class Test {\n" + |
2098 |
"public @QQAnnot class Test {\n" + |
2098 |
"}"); |
2099 |
"}"); |
2099 |
|
2100 |
|
2100 |
|
2101 |
this.workingCopies[1] = getWorkingCopy( |
|
|
2102 |
"/Completion/src/pkgannotations/QQAnnotation.java", |
2103 |
"package pkgannotations;"+ |
2104 |
"public @interface QQAnnotation {\n"+ |
2105 |
"}"); |
2106 |
|
2101 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2107 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2102 |
String str = this.wc.getSource(); |
2108 |
String str = this.workingCopies[0].getSource(); |
2103 |
String completeBehind = "@QQAnnot"; |
2109 |
String completeBehind = "@QQAnnot"; |
2104 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2110 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2105 |
this.wc.codeComplete(cursorLocation, requestor); |
2111 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
2106 |
|
2112 |
|
2107 |
assertResults( |
2113 |
assertResults( |
2108 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2114 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2109 |
requestor.getResults()); |
2115 |
requestor.getResults()); |
2110 |
} |
2116 |
} |
2111 |
public void test0076() throws JavaModelException { |
2117 |
public void test0076() throws JavaModelException { |
2112 |
this.wc = getWorkingCopy( |
2118 |
this.workingCopies = new ICompilationUnit[2]; |
|
|
2119 |
this.workingCopies[0] = getWorkingCopy( |
2113 |
"/Completion/src3/test0076/Test.java", |
2120 |
"/Completion/src3/test0076/Test.java", |
2114 |
"package test0076;\n" + |
2121 |
"package test0076;\n" + |
2115 |
"public @QQAnnot class Test\n" + |
2122 |
"public @QQAnnot class Test\n" + |
2116 |
""); |
2123 |
""); |
2117 |
|
2124 |
|
|
|
2125 |
this.workingCopies[1] = getWorkingCopy( |
2126 |
"/Completion/src/pkgannotations/QQAnnotation.java", |
2127 |
"package pkgannotations;"+ |
2128 |
"public @interface QQAnnotation {\n"+ |
2129 |
"}"); |
2118 |
|
2130 |
|
2119 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2131 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2120 |
String str = this.wc.getSource(); |
2132 |
String str = this.workingCopies[0].getSource(); |
2121 |
String completeBehind = "@QQAnnot"; |
2133 |
String completeBehind = "@QQAnnot"; |
2122 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2134 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2123 |
this.wc.codeComplete(cursorLocation, requestor); |
2135 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
2124 |
|
2136 |
|
2125 |
assertResults( |
2137 |
assertResults( |
2126 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2138 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2127 |
requestor.getResults()); |
2139 |
requestor.getResults()); |
2128 |
} |
2140 |
} |
2129 |
public void test0077() throws JavaModelException { |
2141 |
public void test0077() throws JavaModelException { |
2130 |
this.wc = getWorkingCopy( |
2142 |
this.workingCopies = new ICompilationUnit[2]; |
|
|
2143 |
this.workingCopies[0] = getWorkingCopy( |
2131 |
"/Completion/src3/test0077/Test.java", |
2144 |
"/Completion/src3/test0077/Test.java", |
2132 |
"package test0077;\n" + |
2145 |
"package test0077;\n" + |
2133 |
"public @QQAnnot\n" + |
2146 |
"public @QQAnnot\n" + |
2134 |
""); |
2147 |
""); |
2135 |
|
2148 |
|
|
|
2149 |
this.workingCopies[1] = getWorkingCopy( |
2150 |
"/Completion/src/pkgannotations/QQAnnotation.java", |
2151 |
"package pkgannotations;"+ |
2152 |
"public @interface QQAnnotation {\n"+ |
2153 |
"}"); |
2154 |
|
2136 |
|
2155 |
|
2137 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2156 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2138 |
String str = this.wc.getSource(); |
2157 |
String str = this.workingCopies[0].getSource(); |
2139 |
String completeBehind = "@QQAnnot"; |
2158 |
String completeBehind = "@QQAnnot"; |
2140 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2159 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2141 |
this.wc.codeComplete(cursorLocation, requestor); |
2160 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
2142 |
|
2161 |
|
2143 |
assertResults( |
2162 |
assertResults( |
2144 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2163 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2145 |
requestor.getResults()); |
2164 |
requestor.getResults()); |
2146 |
} |
2165 |
} |
2147 |
public void test0078() throws JavaModelException { |
2166 |
public void test0078() throws JavaModelException { |
2148 |
this.wc = getWorkingCopy( |
2167 |
this.workingCopies = new ICompilationUnit[2]; |
|
|
2168 |
this.workingCopies[0] = getWorkingCopy( |
2149 |
"/Completion/src3/test0078/Test.java", |
2169 |
"/Completion/src3/test0078/Test.java", |
2150 |
"package test0078;\n" + |
2170 |
"package test0078;\n" + |
2151 |
"public class Test {\n" + |
2171 |
"public class Test {\n" + |
Lines 2153-2259
Link Here
|
2153 |
" }\n" + |
2173 |
" }\n" + |
2154 |
"}"); |
2174 |
"}"); |
2155 |
|
2175 |
|
|
|
2176 |
this.workingCopies[1] = getWorkingCopy( |
2177 |
"/Completion/src/pkgannotations/QQAnnotation.java", |
2178 |
"package pkgannotations;"+ |
2179 |
"public @interface QQAnnotation {\n"+ |
2180 |
"}"); |
2156 |
|
2181 |
|
2157 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2182 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2158 |
String str = this.wc.getSource(); |
2183 |
String str = this.workingCopies[0].getSource(); |
2159 |
String completeBehind = "@QQAnnot"; |
2184 |
String completeBehind = "@QQAnnot"; |
2160 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2185 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2161 |
this.wc.codeComplete(cursorLocation, requestor); |
2186 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
2162 |
|
2187 |
|
2163 |
assertResults( |
2188 |
assertResults( |
2164 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2189 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2165 |
requestor.getResults()); |
2190 |
requestor.getResults()); |
2166 |
} |
2191 |
} |
2167 |
public void test0079() throws JavaModelException { |
2192 |
public void test0079() throws JavaModelException { |
2168 |
this.wc = getWorkingCopy( |
2193 |
this.workingCopies = new ICompilationUnit[2]; |
|
|
2194 |
this.workingCopies[0] = getWorkingCopy( |
2169 |
"/Completion/src3/test0078/Test.java", |
2195 |
"/Completion/src3/test0078/Test.java", |
2170 |
"package test0078;\n" + |
2196 |
"package test0078;\n" + |
2171 |
"public class Test {\n" + |
2197 |
"public class Test {\n" + |
2172 |
" public @QQAnnot void foo(\n" + |
2198 |
" public @QQAnnot void foo(\n" + |
2173 |
"}"); |
2199 |
"}"); |
2174 |
|
2200 |
|
|
|
2201 |
this.workingCopies[1] = getWorkingCopy( |
2202 |
"/Completion/src/pkgannotations/QQAnnotation.java", |
2203 |
"package pkgannotations;"+ |
2204 |
"public @interface QQAnnotation {\n"+ |
2205 |
"}"); |
2175 |
|
2206 |
|
2176 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2207 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2177 |
String str = this.wc.getSource(); |
2208 |
String str = this.workingCopies[0].getSource(); |
2178 |
String completeBehind = "@QQAnnot"; |
2209 |
String completeBehind = "@QQAnnot"; |
2179 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2210 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2180 |
this.wc.codeComplete(cursorLocation, requestor); |
2211 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
2181 |
|
2212 |
|
2182 |
assertResults( |
2213 |
assertResults( |
2183 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2214 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2184 |
requestor.getResults()); |
2215 |
requestor.getResults()); |
2185 |
} |
2216 |
} |
2186 |
public void test0080() throws JavaModelException { |
2217 |
public void test0080() throws JavaModelException { |
2187 |
this.wc = getWorkingCopy( |
2218 |
this.workingCopies = new ICompilationUnit[2]; |
|
|
2219 |
this.workingCopies[0] = getWorkingCopy( |
2188 |
"/Completion/src3/test0078/Test.java", |
2220 |
"/Completion/src3/test0078/Test.java", |
2189 |
"package test0078;\n" + |
2221 |
"package test0078;\n" + |
2190 |
"public class Test {\n" + |
2222 |
"public class Test {\n" + |
2191 |
" public @QQAnnot int var;\n" + |
2223 |
" public @QQAnnot int var;\n" + |
2192 |
"}"); |
2224 |
"}"); |
2193 |
|
2225 |
|
|
|
2226 |
this.workingCopies[1] = getWorkingCopy( |
2227 |
"/Completion/src/pkgannotations/QQAnnotation.java", |
2228 |
"package pkgannotations;"+ |
2229 |
"public @interface QQAnnotation {\n"+ |
2230 |
"}"); |
2194 |
|
2231 |
|
2195 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2232 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2196 |
String str = this.wc.getSource(); |
2233 |
String str = this.workingCopies[0].getSource(); |
2197 |
String completeBehind = "@QQAnnot"; |
2234 |
String completeBehind = "@QQAnnot"; |
2198 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2235 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2199 |
this.wc.codeComplete(cursorLocation, requestor); |
2236 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
2200 |
|
2237 |
|
2201 |
assertResults( |
2238 |
assertResults( |
2202 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2239 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2203 |
requestor.getResults()); |
2240 |
requestor.getResults()); |
2204 |
} |
2241 |
} |
2205 |
public void test0081() throws JavaModelException { |
2242 |
public void test0081() throws JavaModelException { |
2206 |
this.wc = getWorkingCopy( |
2243 |
this.workingCopies = new ICompilationUnit[2]; |
|
|
2244 |
this.workingCopies[0] = getWorkingCopy( |
2207 |
"/Completion/src3/test0078/Test.java", |
2245 |
"/Completion/src3/test0078/Test.java", |
2208 |
"package test0078;\n" + |
2246 |
"package test0078;\n" + |
2209 |
"public class Test {\n" + |
2247 |
"public class Test {\n" + |
2210 |
" public @QQAnnot int var\n" + |
2248 |
" public @QQAnnot int var\n" + |
2211 |
"}"); |
2249 |
"}"); |
2212 |
|
2250 |
|
|
|
2251 |
this.workingCopies[1] = getWorkingCopy( |
2252 |
"/Completion/src/pkgannotations/QQAnnotation.java", |
2253 |
"package pkgannotations;"+ |
2254 |
"public @interface QQAnnotation {\n"+ |
2255 |
"}"); |
2213 |
|
2256 |
|
2214 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2257 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2215 |
String str = this.wc.getSource(); |
2258 |
String str = this.workingCopies[0].getSource(); |
2216 |
String completeBehind = "@QQAnnot"; |
2259 |
String completeBehind = "@QQAnnot"; |
2217 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2260 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2218 |
this.wc.codeComplete(cursorLocation, requestor); |
2261 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
2219 |
|
2262 |
|
2220 |
assertResults( |
2263 |
assertResults( |
2221 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2264 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2222 |
requestor.getResults()); |
2265 |
requestor.getResults()); |
2223 |
} |
2266 |
} |
2224 |
public void test0082() throws JavaModelException { |
2267 |
public void test0082() throws JavaModelException { |
2225 |
this.wc = getWorkingCopy( |
2268 |
this.workingCopies = new ICompilationUnit[2]; |
|
|
2269 |
this.workingCopies[0] = getWorkingCopy( |
2226 |
"/Completion/src3/test0078/Test.java", |
2270 |
"/Completion/src3/test0078/Test.java", |
2227 |
"package test0078;\n" + |
2271 |
"package test0078;\n" + |
2228 |
"public class Test {\n" + |
2272 |
"public class Test {\n" + |
2229 |
" void foo(@QQAnnot int i) {}\n" + |
2273 |
" void foo(@QQAnnot int i) {}\n" + |
2230 |
"}"); |
2274 |
"}"); |
2231 |
|
2275 |
|
|
|
2276 |
this.workingCopies[1] = getWorkingCopy( |
2277 |
"/Completion/src/pkgannotations/QQAnnotation.java", |
2278 |
"package pkgannotations;"+ |
2279 |
"public @interface QQAnnotation {\n"+ |
2280 |
"}"); |
2281 |
|
2232 |
|
2282 |
|
2233 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2283 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2234 |
String str = this.wc.getSource(); |
2284 |
String str = this.workingCopies[0].getSource(); |
2235 |
String completeBehind = "@QQAnnot"; |
2285 |
String completeBehind = "@QQAnnot"; |
2236 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2286 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2237 |
this.wc.codeComplete(cursorLocation, requestor); |
2287 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
2238 |
|
2288 |
|
2239 |
assertResults( |
2289 |
assertResults( |
2240 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2290 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2241 |
requestor.getResults()); |
2291 |
requestor.getResults()); |
2242 |
} |
2292 |
} |
2243 |
public void test0083() throws JavaModelException { |
2293 |
public void test0083() throws JavaModelException { |
2244 |
this.wc = getWorkingCopy( |
2294 |
this.workingCopies = new ICompilationUnit[2]; |
|
|
2295 |
this.workingCopies[0] = getWorkingCopy( |
2245 |
"/Completion/src3/test0078/Test.java", |
2296 |
"/Completion/src3/test0078/Test.java", |
2246 |
"package test0078;\n" + |
2297 |
"package test0078;\n" + |
2247 |
"public class Test {\n" + |
2298 |
"public class Test {\n" + |
2248 |
" void foo() {@QQAnnot int i}\n" + |
2299 |
" void foo() {@QQAnnot int i}\n" + |
2249 |
"}"); |
2300 |
"}"); |
2250 |
|
2301 |
|
|
|
2302 |
this.workingCopies[1] = getWorkingCopy( |
2303 |
"/Completion/src/pkgannotations/QQAnnotation.java", |
2304 |
"package pkgannotations;"+ |
2305 |
"public @interface QQAnnotation {\n"+ |
2306 |
"}"); |
2307 |
|
2251 |
|
2308 |
|
2252 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2309 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
2253 |
String str = this.wc.getSource(); |
2310 |
String str = this.workingCopies[0].getSource(); |
2254 |
String completeBehind = "@QQAnnot"; |
2311 |
String completeBehind = "@QQAnnot"; |
2255 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2312 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
2256 |
this.wc.codeComplete(cursorLocation, requestor); |
2313 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
2257 |
|
2314 |
|
2258 |
assertResults( |
2315 |
assertResults( |
2259 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
2316 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
Lines 8926-8931
Link Here
|
8926 |
"test0.test1[PACKAGE_REF]{test0.test1., test0.test1, null, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_NON_RESTRICTED) + "}", |
8983 |
"test0.test1[PACKAGE_REF]{test0.test1., test0.test1, null, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_NON_RESTRICTED) + "}", |
8927 |
requestor.getResults()); |
8984 |
requestor.getResults()); |
8928 |
} |
8985 |
} |
|
|
8986 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=129983 |
8987 |
public void test0290() throws JavaModelException { |
8988 |
this.workingCopies = new ICompilationUnit[2]; |
8989 |
this.workingCopies[0] = getWorkingCopy( |
8990 |
"/Completion/src3/test0290/Test.java", |
8991 |
"package test0290;\n" + |
8992 |
"@\n" + |
8993 |
"public class Test {\n" + |
8994 |
"}"); |
8995 |
|
8996 |
this.workingCopies[1] = getWorkingCopy( |
8997 |
"/Completion/src/pkgannotations/QQAnnotation.java", |
8998 |
"package pkgannotations;"+ |
8999 |
"public @interface QQAnnotation {\n"+ |
9000 |
"}"); |
9001 |
|
9002 |
|
9003 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
9004 |
String str = this.workingCopies[0].getSource(); |
9005 |
String completeBehind = "@"; |
9006 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
9007 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
9008 |
|
9009 |
assertResults( |
9010 |
"QQAnnotation[TYPE_REF]{pkgannotations.QQAnnotation, pkgannotations, Lpkgannotations.QQAnnotation;, null, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_ANNOTATION + R_NON_RESTRICTED) + "}", |
9011 |
requestor.getResults()); |
9012 |
} |
8929 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=153130 |
9013 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=153130 |
8930 |
public void testEC001() throws JavaModelException { |
9014 |
public void testEC001() throws JavaModelException { |
8931 |
this.workingCopies = new ICompilationUnit[1]; |
9015 |
this.workingCopies = new ICompilationUnit[1]; |