Lines 42-57
Link Here
|
42 |
public static Test suite() { |
42 |
public static Test suite() { |
43 |
return buildModelTestSuite(JavaSearchBugsTests.class); |
43 |
return buildModelTestSuite(JavaSearchBugsTests.class); |
44 |
} |
44 |
} |
45 |
// Use this static initializer to specify subset for tests |
|
|
46 |
// All specified tests which do not belong to the class are skipped... |
47 |
static { |
45 |
static { |
48 |
// org.eclipse.jdt.internal.core.search.BasicSearchEngine.VERBOSE = true; |
46 |
// org.eclipse.jdt.internal.core.search.BasicSearchEngine.VERBOSE = true; |
49 |
// org.eclipse.jdt.internal.codeassist.SelectionEngine.DEBUG = true; |
47 |
// org.eclipse.jdt.internal.codeassist.SelectionEngine.DEBUG = true; |
50 |
// TESTS_PREFIX = "testBug110060"; |
48 |
} |
51 |
// TESTS_NAMES = new String[] { "testBug126330" }; |
|
|
52 |
// TESTS_NUMBERS = new int[] { 110060, 130390 }; |
53 |
// TESTS_RANGE = new int[] { 83304, -1 }; |
54 |
} |
55 |
|
49 |
|
56 |
class TestCollector extends JavaSearchResultCollector { |
50 |
class TestCollector extends JavaSearchResultCollector { |
57 |
public List matches = new ArrayList(); |
51 |
public List matches = new ArrayList(); |
Lines 5804-5809
Link Here
|
5804 |
"" // expected no result as parameters annotations are not stored in class file |
5798 |
"" // expected no result as parameters annotations are not stored in class file |
5805 |
); |
5799 |
); |
5806 |
} |
5800 |
} |
|
|
5801 |
/** |
5802 |
* @test Bug 124645: [search] for implementors does not find subclasses of binary classes |
5803 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=124645" |
5804 |
*/ |
5805 |
public void testBug124645a() throws CoreException { |
5806 |
IClassFile classFile = getClassFile("JavaSearchBugs", "lib/b124645.jar", "xy", "BE_124645.class"); |
5807 |
IType type = classFile.getType(); |
5808 |
search(type, IMPLEMENTORS); |
5809 |
assertSearchResults( |
5810 |
"src/b124645/xy/X_124645.java b124645.xy.X_124645$Y [BE_124645] EXACT_MATCH\n" + |
5811 |
"src/b124645/xy/Y_124645.java b124645.xy.Y_124645 [BE_124645] EXACT_MATCH\n" + |
5812 |
"lib/b124645.jar xy.BX_124645$Y EXACT_MATCH\n" + |
5813 |
"lib/b124645.jar xy.BY_124645 EXACT_MATCH" |
5814 |
); |
5815 |
} |
5816 |
public void testBug124645b() throws CoreException { |
5817 |
IClassFile classFile = getClassFile("JavaSearchBugs", "lib/b124645.jar", "test", "BE_124645.class"); |
5818 |
IType type = classFile.getType(); |
5819 |
search(type, IMPLEMENTORS); |
5820 |
assertSearchResults( |
5821 |
"src/b124645/test/A_124645.java b124645.test.A_124645 [BE_124645] EXACT_MATCH\n" + |
5822 |
"src/b124645/test/A_124645.java void b124645.test.A_124645.m():<anonymous>#1 [BE_124645] EXACT_MATCH\n" + |
5823 |
"src/b124645/test/X_124645.java b124645.test.X_124645 [BE_124645] EXACT_MATCH\n" + |
5824 |
"src/b124645/test/X_124645.java void b124645.test.X_124645.m():Y_124645#1 [BE_124645] EXACT_MATCH\n" + |
5825 |
"lib/b124645.jar test.BA_124645 EXACT_MATCH\n" + |
5826 |
"lib/b124645.jar test.<anonymous> EXACT_MATCH\n" + |
5827 |
"lib/b124645.jar test.BX_124645 EXACT_MATCH\n" + |
5828 |
"lib/b124645.jar test.Y EXACT_MATCH" |
5829 |
); |
5830 |
} |
5831 |
public void testBug124645c() throws CoreException { |
5832 |
IClassFile classFile = getClassFile("JavaSearchBugs", "lib/b124645.jar", "", "BC_124645.class"); |
5833 |
IType type = classFile.getType(); |
5834 |
search(type, IMPLEMENTORS); |
5835 |
assertSearchResults( |
5836 |
"lib/b124645.jar <anonymous> EXACT_MATCH" |
5837 |
); |
5838 |
} |
5839 |
public void testBug124645d() throws CoreException { |
5840 |
IClassFile classFile = getClassFile("JavaSearchBugs", "lib/b124645.jar", "", "BI_124645.class"); |
5841 |
IType type = classFile.getType(); |
5842 |
search(type, IMPLEMENTORS); |
5843 |
assertSearchResults( |
5844 |
"lib/b124645.jar <anonymous> EXACT_MATCH" |
5845 |
); |
5846 |
} |
5807 |
|
5847 |
|
5808 |
/** |
5848 |
/** |
5809 |
* Bug 125178: [search] AIOOBE in PatternLocator when searching for dependency extent from manifest |
5849 |
* Bug 125178: [search] AIOOBE in PatternLocator when searching for dependency extent from manifest |