Lines 333-338
Link Here
|
333 |
); |
333 |
); |
334 |
} |
334 |
} |
335 |
/** |
335 |
/** |
|
|
336 |
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=194743 |
337 |
* ResolveConstructorCall2.class has no attached source |
338 |
*/ |
339 |
public void testConstructor5() throws JavaModelException { |
340 |
this.workingCopies = new ICompilationUnit[1]; |
341 |
this.workingCopies[0] = getWorkingCopy( |
342 |
"/Resolve/src/Test.java", |
343 |
"public class Test {\n" + |
344 |
" void foo() {\n" + |
345 |
" new ResolveConstructorCall2();\n" + |
346 |
" }\n" + |
347 |
"}\n" + |
348 |
"\n" |
349 |
); |
350 |
IJavaElement[] elements = codeSelect(this.workingCopies[0], "ResolveConstructorCall2", "ResolveConstructorCall2"); |
351 |
assertElementsEqual( |
352 |
"Unexpected elements", |
353 |
"ResolveConstructorCall2() [in ResolveConstructorCall2 [in ResolveConstructorCall2.class [in <default> [in class-folder [in Resolve]]]]]", |
354 |
elements |
355 |
); |
356 |
} |
357 |
/** |
358 |
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=194743 |
359 |
* ResolveConstructorCall3.class has attached source and a default constructor |
360 |
*/ |
361 |
public void testConstructor6() throws JavaModelException { |
362 |
this.workingCopies = new ICompilationUnit[1]; |
363 |
this.workingCopies[0] = getWorkingCopy( |
364 |
"/Resolve/src/Test.java", |
365 |
"public class Test {\n" + |
366 |
" void foo() {\n" + |
367 |
" new ResolveConstructorCall3();\n" + |
368 |
" }\n" + |
369 |
"}\n" + |
370 |
"\n" |
371 |
); |
372 |
IJavaElement[] elements = codeSelect(this.workingCopies[0], "ResolveConstructorCall3", "ResolveConstructorCall3"); |
373 |
assertElementsEqual( |
374 |
"Unexpected elements", |
375 |
"ResolveConstructorCall3 [in ResolveConstructorCall3.class [in <default> [in class-folder [in Resolve]]]]", |
376 |
elements |
377 |
); |
378 |
} |
379 |
/** |
336 |
* Resolve constructor call |
380 |
* Resolve constructor call |
337 |
*/ |
381 |
*/ |
338 |
public void testConstructorCallOfMemberType() throws JavaModelException { |
382 |
public void testConstructorCallOfMemberType() throws JavaModelException { |