Bug 82260 ResultCollector: remove dependency to internal J Core interface
I20050104-1600 Summary says it all.
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/CodeCompletionTest.java
public void testNormalAllMethodCompletionWithParametersNames() throws Exception {
		IPackageFragmentRoot sourceFolder= JavaProjectHelper.addSourceContainer(fJProject1, "src");
		IPackageFragment pack1= sourceFolder.createPackageFragment("test1", false, null);
		String contents= "package test1;\n" + "\n" + "public class Completion {\n" + "    \n" + "    void foomethod() {\n" + "        int i=5;\n" + "        long l=3;\n" + "        Runnable run;\n" + "        run.//here\n" + "    }\n" + "}\n";
		ICompilationUnit cu= pack1.createCompilationUnit("Completion.java", contents, false, null);
		String str= "//here";
		int offset= contents.indexOf(str);
		ResultCollector collector= new ExperimentalResultCollector();
		collector.reset(offset, cu.getJavaProject(), cu);
		collector.setViewer(null);
		collector.setReplacementLength(0);
		collector.setPreventEating(true);
		codeComplete(cu, offset, collector);
		JavaCompletionProposal[] proposals= collector.getResults();
		JavaCompletionProposalComparator comparator= new JavaCompletionProposalComparator();
		comparator.setOrderAlphabetically(true);
		Arrays.sort(proposals, comparator);
		int i= 0;
		assertAppliedProposal(contents, proposals[i++], "clone()");
		assertAppliedProposal(contents, proposals[i++], "equals(arg0)");
		assertAppliedProposal(contents, proposals[i++], "finalize()");
		assertAppliedProposal(contents, proposals[i++], "getClass()");
		assertAppliedProposal(contents, proposals[i++], "hashCode()");
		assertAppliedProposal(contents, proposals[i++], "notify()");
		assertAppliedProposal(contents, proposals[i++], "notifyAll()");
		assertAppliedProposal(contents, proposals[i++], "run()");
		assertAppliedProposal(contents, proposals[i++], "toString()");
		assertAppliedProposal(contents, proposals[i++], "wait()");
		assertAppliedProposal(contents, proposals[i++], "wait(arg0)");
		assertAppliedProposal(contents, proposals[i++], "wait(arg0, arg1)");