Author: vrubezhny
Date: 2009-12-07 07:28:33 -0500 (Mon, 07 Dec 2009)
New Revision: 19074
Modified:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ContentAssistantTestCase.java
Log:
JBIDE-5399: Update CA-related JUnit tests due to satisfy changes made in JBIDE-4877 for CA
Minor change is done due to make error message more useful
Modified:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ContentAssistantTestCase.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ContentAssistantTestCase.java 2009-12-07
12:26:12 UTC (rev 19073)
+++
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ContentAssistantTestCase.java 2009-12-07
12:28:33 UTC (rev 19074)
@@ -33,7 +33,7 @@
protected void openEditor(String fileName) {
IEditorPart editorPart = WorkbenchUtils.openEditor(project.getName()+"/"+
fileName);
-
+// System.out.println("openEditor: " + project.getName()+"/"+
fileName);
if (editorPart instanceof JSPMultiPageEditor)
jspEditor = (JSPMultiPageEditor) editorPart;
@@ -49,7 +49,8 @@
"Cannot get the Content Assistant instance for the editor for page
\""
+ fileName + "\"", (contentAssistant != null));
- assertTrue("The IDocument is not instance of IStructuredDocument",
+ assertTrue("The IDocument is not instance of IStructuredDocument for page
\""
+ + fileName + "\"",
(document instanceof IStructuredDocument));
}