activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1245408 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueSendReceiveTest.java
Date Fri, 17 Feb 2012 11:37:13 GMT
Author: gtully
Date: Fri Feb 17 11:37:12 2012
New Revision: 1245408

URL: http://svn.apache.org/viewvc?rev=1245408&view=rev
Log:
order is not guarenteed with multiple consumers, just validate quantity

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueSendReceiveTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueSendReceiveTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueSendReceiveTest.java?rev=1245408&r1=1245407&r2=1245408&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueSendReceiveTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueSendReceiveTest.java
Fri Feb 17 11:37:12 2012
@@ -42,7 +42,8 @@ public class TwoBrokerQueueSendReceiveTe
             onMessage(consumer.receive(10000));
             consumer.close();
         }
-        this.assertMessagesAreReceived();
+        waitForMessagesToBeDelivered();
+        assertEquals("Got all messages", data.length, messages.size());
 
         BrokerService broker = (BrokerService) brokers.get("receiver");
         final DemandForwardingBridgeSupport bridge = (DemandForwardingBridgeSupport) broker.getNetworkConnectors().get(0).activeBridges().toArray()[0];



Mime
View raw message