[embjopr-commits] EMBJOPR SVN: r729 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts.

embjopr-commits at lists.jboss.org embjopr-commits at lists.jboss.org
Tue Sep 1 04:50:26 EDT 2009


Author: ozizka at redhat.com
Date: 2009-09-01 04:50:25 -0400 (Tue, 01 Sep 2009)
New Revision: 729

Modified:
   trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java
Log:
 * ScriptsTest updated - dumps the page upon script failure.

Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java	2009-09-01 08:03:38 UTC (rev 728)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java	2009-09-01 08:50:25 UTC (rev 729)
@@ -205,7 +205,8 @@
 
 			// Wait for the operation to succesfuly finish.
 			ejtt.operations.waitActivelyForOperationToFinish(EXECUTE_OP_NAME, 5000, 5);
-			assertTrue(EXECUTE_OP_NAME+" operation wasn't successful.", ejtt.tabMenu.getTabContentBox().getOperationsHistoryTable().wasLastOperationSuccesful() );
+			if( ! ejtt.tabMenu.getTabContentBox().getOperationsHistoryTable().wasLastOperationSuccesful()  )
+				throw new EmbJoprTestException( EXECUTE_OP_NAME+" operation wasn't successful." , this);
 
 			ejtt.sleep(2000);
 



More information about the embjopr-commits mailing list