Author: vrubezhny
Date: 2008-01-21 12:49:30 -0500 (Mon, 21 Jan 2008)
New Revision: 5851
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/ca/SeamELContentAssistTest.java
Log:
JBIDE-1553 JUnit Test for Seam EL Content Assist
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/ca/SeamELContentAssistTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/ca/SeamELContentAssistTest.java 2008-01-21
17:47:54 UTC (rev 5850)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/ca/SeamELContentAssistTest.java 2008-01-21
17:49:30 UTC (rev 5851)
@@ -35,6 +35,7 @@
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor;
import org.jboss.tools.seam.ui.text.java.SeamELProposalProcessor;
+import org.jboss.tools.test.util.xpl.EditorTestHelper;
import junit.framework.Test;
import junit.framework.TestCase;
@@ -411,8 +412,9 @@
public void testSeamELContentAssist() {
try {
- XJob.waitForJob();
- } catch (InterruptedException e) {
+// XJob.waitForJob();
+ EditorTestHelper.joinBackgroundActivities();
+ } catch (Exception e) {
e.printStackTrace();
}
assertTrue("Test project \"" + PROJECT_NAME + "\" is not
loaded", (project != null));
@@ -441,8 +443,9 @@
// Delay for 3 seconds so that
// the Favorites view can be seen.
try {
- XJob.waitForJob();
- } catch (InterruptedException e) {
+// XJob.waitForJob();
+ EditorTestHelper.joinBackgroundActivities();
+ } catch (Exception e) {
e.printStackTrace();
assertTrue("Waiting for the jobs to complete has failed.", false);
}
Show replies by date