Author: mareshkau
Date: 2010-06-30 05:04:47 -0400 (Wed, 30 Jun 2010)
New Revision: 23118
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE788Test.java
Log:
fixing jsf CA test's
https://jira.jboss.org/browse/JBIDE-6508
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 2010-06-30
08:13:27 UTC (rev 23117)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE788Test.java 2010-06-30
09:04:47 UTC (rev 23118)
@@ -319,10 +319,13 @@
IContentAssistant iContentAssistant = stvc
.getContentAssistant((ISourceViewer) part.getSourceEditor()
.getAdapter(ISourceViewer.class));
+ //this method should be called for correct initialization of CA
+ iContentAssistant.showPossibleCompletions();
assertNotNull(iContentAssistant);
IContentAssistProcessor iContentAssistProcessor = iContentAssistant
.getContentAssistProcessor(caName);
assertNotNull(iContentAssistProcessor);
+
results = iContentAssistProcessor
.computeCompletionProposals(part.getSourceEditor()
.getTextViewer(), newPosition);