Author: scabanovich
Date: 2011-11-11 17:11:17 -0500 (Fri, 11 Nov 2011)
New Revision: 36306
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForJSF2BeansInJavaTest.java
Log:
JBIDE-10159
https://issues.jboss.org/browse/JBIDE-10159
Test added for content assist outside expression.
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForJSF2BeansInJavaTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForJSF2BeansInJavaTest.java 2011-11-11
19:06:20 UTC (rev 36305)
+++
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForJSF2BeansInJavaTest.java 2011-11-11
22:11:17 UTC (rev 36306)
@@ -42,4 +42,27 @@
checkProposals(PAGE_NAME, "#{}", 2, proposals, false);
}
+
+ /**
+ * JBIDE-10159
+ */
+ public void testCAoutsideExpression(){
+ String[] proposals = {
+ "mybean1 : Bean1", "bean4 : Bean4", "bean5 : Bean5"
+ };
+
+ checkProposals(PAGE_NAME, "#{ mybean1}", 2, proposals, false);
+ checkProposals(PAGE_NAME, "#{ mybean1 }", 12, proposals, false);
+ }
+
+ /**
+ * JBIDE-10159
+ */
+ public void testCAMemberafterWhitespace(){
+ String[] proposals = {
+ "name : String - Bean1"
+ };
+
+ checkProposals(PAGE_NAME, "#{ mybean1. }", 13, proposals, true);
+ }
}
\ No newline at end of file