activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1428673 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueTest.java
Date Thu, 03 Jan 2013 23:42:22 GMT
Author: tabish
Date: Thu Jan  3 23:42:21 2013
New Revision: 1428673

URL: http://svn.apache.org/viewvc?rev=1428673&view=rev
Log:
fix test failure

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueTest.java?rev=1428673&r1=1428672&r2=1428673&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueTest.java
Thu Jan  3 23:42:21 2013
@@ -22,10 +22,10 @@ import javax.jms.MessageConsumer;
 import javax.jms.MessageProducer;
 import javax.jms.Session;
 import javax.jms.TemporaryQueue;
+
 import org.apache.activemq.EmbeddedBrokerTestSupport;
 import org.apache.activemq.broker.BrokerService;
 import org.apache.activemq.broker.region.RegionBroker;
-import org.apache.activemq.command.ActiveMQDestination;
 import org.apache.activemq.command.ActiveMQQueue;
 import org.apache.activemq.command.ActiveMQTopic;
 import org.apache.activemq.spring.ConsumerBean;
@@ -33,7 +33,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
- * 
+ *
  */
 public class MirroredQueueTest extends EmbeddedBrokerTestSupport {
     private static final transient Logger LOG = LoggerFactory.getLogger(MirroredQueueTest.class);
@@ -74,7 +74,7 @@ public class MirroredQueueTest extends E
 
         LOG.info("Received: " + messageList);
     }
-    
+
     public void testTempMirroredQueuesClearDown() throws Exception{
         if (connection == null) {
             connection = createConnection();
@@ -84,9 +84,9 @@ public class MirroredQueueTest extends E
         TemporaryQueue tempQueue = session.createTemporaryQueue();
         RegionBroker rb = (RegionBroker) broker.getBroker().getAdaptor(
                 RegionBroker.class);
-        assertTrue(rb.getDestinationMap().size()==4);
+        assertTrue(rb.getDestinationMap().size()==5);
         tempQueue.delete();
-        assertTrue(rb.getDestinationMap().size()==3);        
+        assertTrue(rb.getDestinationMap().size()==4);
     }
 
     protected Destination createConsumeDestination() {
@@ -106,6 +106,7 @@ public class MirroredQueueTest extends E
         return answer;
     }
 
+    @Override
     protected void tearDown() throws Exception {
         if (connection != null) {
             connection.close();



Mime
View raw message