[hornetq-commits] JBoss hornetq SVN: r11774 - trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Nov 28 07:47:03 EST 2011


Author: borges
Date: 2011-11-28 07:47:03 -0500 (Mon, 28 Nov 2011)
New Revision: 11774

Modified:
   trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover/FailoverTest.java
Log:
Make sure test won't hide errors.

Modified: trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover/FailoverTest.java
===================================================================
--- trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover/FailoverTest.java	2011-11-28 12:42:57 UTC (rev 11773)
+++ trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/failover/FailoverTest.java	2011-11-28 12:47:03 UTC (rev 11774)
@@ -1342,6 +1342,7 @@
       locator.setReconnectAttempts(-1);
 
       locator.setBlockOnAcknowledge(true);
+
       sf = createSessionFactoryAndWaitForTopology(locator, 2);
 
       final ClientSession session = createSession(sf, false, false);
@@ -1400,7 +1401,7 @@
                   }
                   catch (HornetQException e2)
                   {
-
+                     throw new RuntimeException(e2);
                   }
 
                }
@@ -1457,6 +1458,7 @@
       try
       {
          session2.commit();
+         fail("expecting DUPLICATE_ID_REJECTED exception");
       }
       catch (HornetQException e)
       {



More information about the hornetq-commits mailing list