Assert.assertEquals("expect " + expectedText.length + " CompletionProposal item for model '"
+ currentModelToParse + "': expectation was:\n" + expectation
+ "\nbut actual was:\n" + Strings.concat(", ", toString(computeCompletionProposals)),
expectedText.length, computeCompletionProposals.length);
for (int i = 0; i < computeCompletionProposals.length; i++) {
<BUG>ICompletionProposal completionProposal = computeCompletionProposals[i];
Assert.assertTrue("expect completionProposal text '" + expectation + "', but got " +</BUG>
Strings.concat(", ", toString(computeCompletionProposals)),
<BUG>Arrays.asList(expectedText).contains(completionProposal.getDisplayString()));
}</BUG>
return this;

Assert.assertEquals("expect " + expectedText.length + " CompletionProposal item for model '"
+ currentModelToParse + "': expectation was:\n" + expectation
+ "\nbut actual was:\n" + Strings.concat(", ", toString(computeCompletionProposals)),
expectedText.length, computeCompletionProposals.length);
for (int i = 0; i < computeCompletionProposals.length; i++) {
ICompletionProposal completionProposal = computeCompletionProposals[i];
String proposedText = completionProposal.getDisplayString();
if (completionProposal instanceof ConfigurableCompletionProposal)
proposedText = ((ConfigurableCompletionProposal) completionProposal).getReplacementString();
Assert.assertTrue("expect completionProposal text '" + expectation + "', but got " +
Strings.concat(", ", toString(computeCompletionProposals)),
Arrays.asList(expectedText).contains(proposedText));
}
