Author: vrubezhny
Date: 2009-12-07 07:26:12 -0500 (Mon, 07 Dec 2009)
New Revision: 19073
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE788Test.java
Log:
JBIDE-5399: Update CA-related JUnit tests due to satisfy changes made in JBIDE-4877 for CA
org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE788Test JUnit Test case is fixed
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE788Test.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE788Test.java 2009-12-07
10:23:58 UTC (rev 19072)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE788Test.java 2009-12-07
12:26:12 UTC (rev 19073)
@@ -308,8 +308,15 @@
for (int i = 0; i < results.length; i++) {
if(results[i] instanceof AutoContentAssistantProposal ) {
String displayString = ((ICompletionProposal) results[i]).getDisplayString();
+ // Fixed due to satisfy the changes performed by fix for JBIDE-4877
+ // The proposal is valid if:
+ // - the display string starts with the mask specified
+ // - the tag name part (without a prefix and ":"-character) starts
with the mask specified
+ String tagNamePart = displayString.indexOf(":") == -1 ?
+ displayString :
+ displayString.substring(displayString.indexOf(":") + 1);
assertNotNull(displayString);
- assertEquals(true, displayString.startsWith(partOfString));
+ assertEquals(true, displayString.startsWith(partOfString) ||
tagNamePart.startsWith(partOfString));
}
}
}
Show replies by date