use request() instead of send()

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@516034 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-03-08 13:19:03 +00:00
parent 544ffe9dce
commit d7a14830c7
1 changed files with 2 additions and 4 deletions

View File

@ -118,12 +118,10 @@ public class DemandForwardingBridgeTest extends NetworkTestSupport {
connection2.send(consumerInfo);
// Send the message to the local boker.
connection1.send(createMessage(producerInfo, destination, deliveryMode));
connection1.request(createMessage(producerInfo, destination, deliveryMode));
// Make sure the message was delivered via the remote.
Message m = receiveMessage(connection2);
assertNotNull(m);
}
}
protected void setUp() throws Exception {
super.setUp();