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

embjopr-commits at lists.jboss.org embjopr-commits at lists.jboss.org
Sat Aug 8 18:06:34 EDT 2009


Author: ozizka at redhat.com
Date: 2009-08-08 18:06:34 -0400 (Sat, 08 Aug 2009)
New Revision: 659

Modified:
   trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jmsDestinations/JMSOperationsTest.java
Log:
 * JMSDestinations tests - added page dump to empty table failure.

Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jmsDestinations/JMSOperationsTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jmsDestinations/JMSOperationsTest.java	2009-08-08 21:21:48 UTC (rev 658)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jmsDestinations/JMSOperationsTest.java	2009-08-08 22:06:34 UTC (rev 659)
@@ -1768,10 +1768,14 @@
         if((numMessages == 0) && (expectedNumMessages > 0)) {
             emptyTableMessage = "An empty table was displayed - ";
         }
+
+				if( expectedNumMessages != numMessages ){
+					String msg = emptyTableMessage + "Incorrect number of messages displayed in the results table." +
+									" Expected: "+expectedNumMessages+" Actual: "+numMessages+";  Page dumped.";
+					new EmbJoprTestException(msg, this);
+	        fail(msg);
+				}
         
-        assertEquals(emptyTableMessage + "Incorrect number of messages displayed in the results table: ", 
-                     expectedNumMessages, numMessages);
-        
         Iterator i = rows.iterator();
         
         int rowNum = 0;



More information about the embjopr-commits mailing list