remove some of the dependencies on port 61616 in current tests.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1156835 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2011-08-11 21:17:24 +00:00
parent b4b39509a9
commit 0e7d5a9523
2 changed files with 4 additions and 3 deletions

View File

@ -39,7 +39,8 @@ public class AMQ1687Test extends EmbeddedBrokerTestSupport {
@Override
protected ConnectionFactory createConnectionFactory() throws Exception {
//prefetch change is not required, but test will not fail w/o it, only spew errors in the AMQ log.
return new ActiveMQConnectionFactory(this.bindAddress+"?jms.prefetchPolicy.all=5");
return new ActiveMQConnectionFactory(
broker.getTransportConnectors().get(0).getPublishableConnectString() +"?jms.prefetchPolicy.all=5");
}
public void testVirtualTopicCreation() throws Exception {
@ -91,7 +92,7 @@ public class AMQ1687Test extends EmbeddedBrokerTestSupport {
}
protected void setUp() throws Exception {
this.bindAddress="tcp://localhost:61616";
this.bindAddress="tcp://localhost:0";
super.setUp();
}
protected void tearDown() throws Exception {

View File

@ -54,7 +54,7 @@ public class AMQ1917Test extends TestCase {
private CountDownLatch roundTripLatch = new CountDownLatch(NUM_MESSAGES);
private CountDownLatch errorLatch = new CountDownLatch(1);
private ThreadPoolExecutor tpe;
private final String BROKER_URL = "tcp://localhost:61616";
private final String BROKER_URL = "tcp://localhost:0";
private String connectionUri;
private BrokerService broker = null;
private boolean working = true;