activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r516104 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java
Date Thu, 08 Mar 2007 17:16:21 GMT
Author: rajdavies
Date: Thu Mar  8 09:16:18 2007
New Revision: 516104

URL: http://svn.apache.org/viewvc?view=rev&rev=516104
Log:
ensure connection state (e.g. consumers) are delivered before testing message consumption

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

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java?view=diff&rev=516104&r1=516103&r2=516104
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/MessageExpirationTest.java
Thu Mar  8 09:16:18 2007
@@ -100,7 +100,7 @@
         destination = createDestinationInfo(connection2, connectionInfo2, destinationType);
         ConsumerInfo consumerInfo2 = createConsumerInfo(sessionInfo2, destination);
         consumerInfo2.setPrefetchSize(1);
-        connection2.send(consumerInfo2);
+        connection2.request(consumerInfo2);
         
         // Reduce the limit so that only 1 message can flow through the broker at a time.
         broker.getMemoryManager().setLimit(1);



Mime
View raw message