activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r633554 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/BrokerTest.java
Date Tue, 04 Mar 2008 17:29:11 GMT
Author: chirino
Date: Tue Mar  4 09:28:53 2008
New Revision: 633554

URL: http://svn.apache.org/viewvc?rev=633554&view=rev
Log:
The testWildcardConsume has 1 consumer subscribe to 2 destiantions and made an assumption

that messages would delivered in the order published to the 2 different destinations.  This
is not correct
as the messages could queue up and get dispatched at different times.  Updated the code so
that this assumption
is no longer relied on.

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

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/BrokerTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/BrokerTest.java?rev=633554&r1=633553&r2=633554&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/BrokerTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/BrokerTest.java
Tue Mar  4 09:28:53 2008
@@ -839,14 +839,15 @@
         // These two message should match the wild card.
         ActiveMQDestination d1 = ActiveMQDestination.createDestination("WILD.CARD.TEST",
destinationType);
         connection1.send(createMessage(producerInfo1, d1, deliveryMode));
-        ActiveMQDestination d2 = ActiveMQDestination.createDestination("WILD.FOO.TEST", destinationType);
-        connection1.request(createMessage(producerInfo1, d2, deliveryMode));
-
+        
         Message m = receiveMessage(connection1);
         assertNotNull(m);
-        //assertEquals(d1, m.getDestination());
+        assertEquals(d1, m.getDestination());
+
+        ActiveMQDestination d2 = ActiveMQDestination.createDestination("WILD.FOO.TEST", destinationType);
+        connection1.request(createMessage(producerInfo1, d2, deliveryMode));
         m = receiveMessage(connection1);
-        //assertNotNull(m);
+        assertNotNull(m);
         assertEquals(d2, m.getDestination());
 
         assertNoMessagesLeft(connection1);



Mime
View raw message