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

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Dec 6 08:01:10 EST 2011


Author: borges
Date: 2011-12-06 08:01:10 -0500 (Tue, 06 Dec 2011)
New Revision: 11857

Modified:
   trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/distribution/MessageRedistributionTest.java
Log:
Remove unnecessary code.

Modified: trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/distribution/MessageRedistributionTest.java
===================================================================
--- trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/distribution/MessageRedistributionTest.java	2011-12-06 12:38:34 UTC (rev 11856)
+++ trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/distribution/MessageRedistributionTest.java	2011-12-06 13:01:10 UTC (rev 11857)
@@ -71,19 +71,6 @@
       setRedistributionDelay(0);
    }
 
-   private void stop() throws Exception
-   {
-      stopServers();
-   }
-
-   @Override
-   protected void tearDown() throws Exception
-   {
-      stop();
-
-      super.tearDown();
-   }
-
    protected boolean isNetty()
    {
       return false;
@@ -296,7 +283,7 @@
 
          ByteBuffer bb = ByteBuffer.wrap(bytes);
 
-         bb.putLong((long)i);
+         bb.putLong(i);
 
          msg.putBytesProperty(MessageImpl.HDR_BRIDGE_DUPLICATE_ID, bytes);
 
@@ -575,7 +562,7 @@
          verifyNotReceive(1);
          removeConsumer(1);
 
-         stop();
+         stopServers();
          start();
       }
 
@@ -641,7 +628,7 @@
 
          verifyReceiveAll(20, 1);
 
-         stop();
+         stopServers();
          start();
       }
 



More information about the hornetq-commits mailing list