ensure connections are closed (so all messages are fludshed to the broker) before testing message delivery

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@516012 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-03-08 11:16:12 +00:00
parent c97b97ed88
commit 12fa4de5c6
1 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ public class AdvisoryBrokerTest extends BrokerTestSupport {
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 @@ public class AdvisoryBrokerTest extends BrokerTestSupport {
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 @@ public class AdvisoryBrokerTest extends BrokerTestSupport {
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