ARTEMIS-789 fix ReceiveTest

This commit is contained in:
Justin Bertram 2016-12-16 13:38:48 -06:00
parent f98b410a1d
commit 8c1a9314e6
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ import org.apache.activemq.artemis.api.core.client.MessageHandler;
import org.apache.activemq.artemis.api.core.client.ServerLocator; import org.apache.activemq.artemis.api.core.client.ServerLocator;
import org.apache.activemq.artemis.core.server.ActiveMQServer; import org.apache.activemq.artemis.core.server.ActiveMQServer;
import org.apache.activemq.artemis.core.server.Queue; import org.apache.activemq.artemis.core.server.Queue;
import org.apache.activemq.artemis.core.server.RoutingType;
import org.apache.activemq.artemis.tests.integration.mqtt.imported.util.Wait; import org.apache.activemq.artemis.tests.integration.mqtt.imported.util.Wait;
import org.apache.activemq.artemis.tests.util.ActiveMQTestBase; import org.apache.activemq.artemis.tests.util.ActiveMQTestBase;
import org.junit.Assert; import org.junit.Assert;
@ -137,7 +138,7 @@ public class ReceiveTest extends ActiveMQTestBase {
ClientSession sendSession = cf.createSession(false, true, true); ClientSession sendSession = cf.createSession(false, true, true);
ClientProducer cp = sendSession.createProducer(addressA); ClientProducer cp = sendSession.createProducer(addressA);
ClientSession session = cf.createSession(false, true, true); ClientSession session = cf.createSession(false, true, true);
session.createQueue(addressA, queueA, false); session.createQueue(addressA, RoutingType.ANYCAST, queueA, false);
ClientConsumer cc = session.createConsumer(queueA); ClientConsumer cc = session.createConsumer(queueA);
ClientConsumer cc2 = session.createConsumer(queueA); ClientConsumer cc2 = session.createConsumer(queueA);
session.start(); session.start();