activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r516012 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/advisory/AdvisoryBrokerTest.java
Date Thu, 08 Mar 2007 11:16:13 GMT
Author: rajdavies
Date: Thu Mar  8 03:16:12 2007
New Revision: 516012

URL: http://svn.apache.org/viewvc?view=rev&rev=516012
Log:
ensure connections are closed (so all messages are fludshed to the broker) before testing
message delivery

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

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/advisory/AdvisoryBrokerTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/advisory/AdvisoryBrokerTest.java?view=diff&rev=516012&r1=516011&r2=516012
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/advisory/AdvisoryBrokerTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/advisory/AdvisoryBrokerTest.java
Thu Mar  8 03:16:12 2007
@@ -116,7 +116,7 @@
         assertEquals(((ConsumerInfo)m1.getDataStructure()).getConsumerId(), consumerInfo2.getConsumerId());
 
         // Close the second connection.
-        connection2.send(closeConnectionInfo(connectionInfo2));
+        connection2.request(closeConnectionInfo(connectionInfo2));
         connection2.stop();
 
         // We should get an advisory of the consumer closing
@@ -213,7 +213,7 @@
         assertEquals(((ProducerInfo)m1.getDataStructure()).getProducerId(), producerInfo2.getProducerId());
 
         // Close the second connection.
-        connection2.send(closeConnectionInfo(connectionInfo2));
+        connection2.request(closeConnectionInfo(connectionInfo2));
         connection2.stop();
 
         // We should get an advisory of the producer closing
@@ -261,7 +261,7 @@
         assertEquals(((ProducerInfo)m1.getDataStructure()).getProducerId(), producerInfo2.getProducerId());
 
         // Close the second connection.
-        connection2.send(closeConnectionInfo(connectionInfo2));
+        connection2.request(closeConnectionInfo(connectionInfo2));
         connection2.stop();
 
         // We should get an advisory of the producer closing



Mime
View raw message