Author: snjeza
Date: 2008-10-23 18:06:47 -0400 (Thu, 23 Oct 2008)
New Revision: 11128
Modified:
branches/jbosstools-3.0.0.Beta1/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java
branches/jbosstools-3.0.0.Beta1/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java
Log:
Fixing errors in the org.jboss.tools.jsf.vpe.jsf.test tests
Modified:
branches/jbosstools-3.0.0.Beta1/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java
===================================================================
---
branches/jbosstools-3.0.0.Beta1/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java 2008-10-23
22:06:42 UTC (rev 11127)
+++
branches/jbosstools-3.0.0.Beta1/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java 2008-10-23
22:06:47 UTC (rev 11128)
@@ -133,7 +133,11 @@
assertNotNull(xmlModelElement);
// compare DOMs
- TestDomUtil.compareNodes(vpeElement, xmlModelElement);
+ try {
+ TestDomUtil.compareNodes(vpeElement, xmlModelElement);
+ } catch (ComparisonException e) {
+ fail(e.getMessage());
+ }
}
Modified:
branches/jbosstools-3.0.0.Beta1/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java
===================================================================
---
branches/jbosstools-3.0.0.Beta1/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java 2008-10-23
22:06:42 UTC (rev 11127)
+++
branches/jbosstools-3.0.0.Beta1/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java 2008-10-23
22:06:47 UTC (rev 11128)
@@ -193,14 +193,18 @@
/**
* Wait for idle.
*/
- public static void waitForIdle() {
+ public static void waitForIdle(long maxIdle) {
long start = System.currentTimeMillis();
while (!Job.getJobManager().isIdle()) {
delay(500);
- if ( (System.currentTimeMillis()-start) > MAX_IDLE )
+ if ( (System.currentTimeMillis()-start) > maxIdle )
throw new RuntimeException("A long running task detected"); //$NON-NLS-1$
}
}
+
+ public static void waitForIdle() {
+ waitForIdle(MAX_IDLE);
+ }
/**
* find elements by name.
Show replies by date