From 4810be5c6e7e72ac227de40e806b12f76290d51b Mon Sep 17 00:00:00 2001 From: Claus Ibsen Date: Wed, 19 Sep 2012 14:08:01 +0000 Subject: [PATCH] Fixed test which may fail git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1387600 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/activemq/ActiveMQConnectionFactoryTest.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/ActiveMQConnectionFactoryTest.java b/activemq-core/src/test/java/org/apache/activemq/ActiveMQConnectionFactoryTest.java index f1d880fcc5..17c5b70665 100755 --- a/activemq-core/src/test/java/org/apache/activemq/ActiveMQConnectionFactoryTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/ActiveMQConnectionFactoryTest.java @@ -22,6 +22,7 @@ import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.URI; import java.net.URISyntaxException; +import java.util.Map; import javax.jms.ExceptionListener; import javax.jms.JMSException; @@ -102,20 +103,20 @@ public class ActiveMQConnectionFactoryTest extends CombinationTestSupport { } public void testCreateVMConnectionWithEmbdeddBroker() throws URISyntaxException, JMSException { - ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false"); + ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("vm://myBroker2?broker.persistent=false"); // Make sure the broker is not created until the connection is // instantiated. - assertNull(BrokerRegistry.getInstance().lookup("localhost")); + assertNull(BrokerRegistry.getInstance().lookup("myBroker2")); connection = (ActiveMQConnection)cf.createConnection(); // This should create the connection. assertNotNull(connection); // Verify the broker was created. - assertNotNull(BrokerRegistry.getInstance().lookup("localhost")); + assertNotNull(BrokerRegistry.getInstance().lookup("myBroker2")); connection.close(); // Verify the broker was destroyed. - assertNull(BrokerRegistry.getInstance().lookup("localhost")); + assertNull(BrokerRegistry.getInstance().lookup("myBroker2")); } public void testGetBrokerName() throws URISyntaxException, JMSException {