Author: ron.sigal(a)jboss.com
Date: 2008-04-29 02:06:13 -0400 (Tue, 29 Apr 2008)
New Revision: 4089
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/binding/BindingTestCase.java
Log:
JBREM-930: Eliminated hard coded ports.
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/binding/BindingTestCase.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/binding/BindingTestCase.java 2008-04-29
06:01:09 UTC (rev 4088)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/binding/BindingTestCase.java 2008-04-29
06:06:13 UTC (rev 4089)
@@ -59,7 +59,8 @@
public void testBindingWithLocatorByName() throws Exception
{
System.setProperty(InvokerLocator.BIND_BY_HOST, "true");
- String locatorUrl = "socket://0.0.0.0:5600";
+ int bindPort = PortUtil.findFreePort("0.0.0.0");
+ String locatorUrl = "socket://0.0.0.0:" + bindPort;
Connector connector = new Connector(locatorUrl);
connector.create();
@@ -100,7 +101,8 @@
public void testBindingWithLocatorByAddress() throws Exception
{
System.setProperty(InvokerLocator.BIND_BY_HOST, "false");
- String locatorUrl = "socket://0.0.0.0:5600";
+ int bindPort = PortUtil.findFreePort("0.0.0.0");
+ String locatorUrl = "socket://0.0.0.0:" + bindPort;
Connector connector = new Connector(locatorUrl);
connector.create();
Show replies by date