[jboss-cvs] JBoss Messaging SVN: r5742 - branches/network_interfaces/tests/src/org/jboss/messaging/tests/integration/remoting.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jan 27 08:59:23 EST 2009
Author: jmesnil
Date: 2009-01-27 08:59:22 -0500 (Tue, 27 Jan 2009)
New Revision: 5742
Modified:
branches/network_interfaces/tests/src/org/jboss/messaging/tests/integration/remoting/NetworkAddressTestBase.java
Log:
Modified: branches/network_interfaces/tests/src/org/jboss/messaging/tests/integration/remoting/NetworkAddressTestBase.java
===================================================================
--- branches/network_interfaces/tests/src/org/jboss/messaging/tests/integration/remoting/NetworkAddressTestBase.java 2009-01-27 13:46:04 UTC (rev 5741)
+++ branches/network_interfaces/tests/src/org/jboss/messaging/tests/integration/remoting/NetworkAddressTestBase.java 2009-01-27 13:59:22 UTC (rev 5742)
@@ -101,18 +101,18 @@
// Public --------------------------------------------------------
- /*
public void testConnectToServerWithSameHost() throws Exception
{
Map<NetworkInterface, InetAddress> map = getAddressForEachNetworkInterface();
- Set<Entry<NetworkInterface, InetAddress>> set = map.entrySet();
- for (Entry<NetworkInterface, InetAddress> entry : set)
+ if (map.size() > 0)
{
- String host = entry.getValue().getHostAddress();
+ Set<Entry<NetworkInterface, InetAddress>> set = map.entrySet();
+ Iterator<Entry<NetworkInterface, InetAddress>> iterator = set.iterator();
+ InetAddress address = iterator.next().getValue();
+ String host = address.getHostAddress();
testConnection(host, host, true);
}
}
-*/
public void testConnectToServerAcceptingAllHosts() throws Exception
{
Map<NetworkInterface, InetAddress> map = getAddressForEachNetworkInterface();
@@ -186,6 +186,7 @@
public void testConnection(String acceptorHost, String connectorHost, boolean mustConnect) throws Exception
{
System.out.println("acceptor=" + acceptorHost + ", connector=" + connectorHost + ", mustConnect=" + mustConnect);
+
Map<String, Object> params = new HashMap<String, Object>();
params.put(getHostPropertyKey(), acceptorHost);
TransportConfiguration acceptorConfig = new TransportConfiguration(getAcceptorFactoryClassName(), params);
More information about the jboss-cvs-commits
mailing list