From 5e4f4aea8296f83f04d23b14b1bb5faf9af08fe2 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Wed, 21 Dec 2016 11:44:52 -0500 Subject: [PATCH] NO-JIRA fixing a test --- .../tests/integration/crossprotocol/OpenWireToAMQPTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/crossprotocol/OpenWireToAMQPTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/crossprotocol/OpenWireToAMQPTest.java index 752e60a5b7..d432a9a3aa 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/crossprotocol/OpenWireToAMQPTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/crossprotocol/OpenWireToAMQPTest.java @@ -34,6 +34,7 @@ import org.apache.activemq.artemis.core.settings.impl.AddressSettings; import org.apache.activemq.artemis.tests.util.ActiveMQTestBase; import org.apache.qpid.jms.JmsConnectionFactory; import org.junit.After; +import org.junit.Assert; import org.junit.Before; import org.junit.Test; @@ -56,11 +57,11 @@ public class OpenWireToAMQPTest extends ActiveMQTestBase { super.setUp(); server = createServer(true, true); Configuration serverConfig = server.getConfiguration(); - serverConfig.getAddressesSettings().put("#", new AddressSettings().setAutoCreateQueues(false).setAutoCreateAddresses(false).setDeadLetterAddress(new SimpleString("ActiveMQ.DLQ"))); + serverConfig.getAddressesSettings().put("#", new AddressSettings().setAutoCreateQueues(true).setAutoCreateAddresses(true).setDeadLetterAddress(new SimpleString("ActiveMQ.DLQ"))); serverConfig.setSecurityEnabled(false); server.start(); coreQueue = new SimpleString(queueName); - this.server.createQueue(coreQueue, RoutingType.MULTICAST, coreQueue, null, false, false); + this.server.createQueue(coreQueue, RoutingType.MULTICAST, coreQueue, null, false, false, -1, false, true); qpidfactory = new JmsConnectionFactory("amqp://localhost:61616"); } @@ -93,6 +94,7 @@ public class OpenWireToAMQPTest extends ActiveMQTestBase { MessageConsumer consumer = session.createConsumer(queue); connection.start(); ObjectMessage receive = (ObjectMessage) consumer.receive(5000); + Assert.assertNotNull(receive); list = (ArrayList) receive.getObject(); assertEquals(list.get(0), "aString"); connection.close();