[jboss-cvs] JBoss Messaging SVN: r5753 - trunk/tests/src/org/jboss/messaging/tests/integration/remoting.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jan 28 10:26:50 EST 2009
Author: jmesnil
Date: 2009-01-28 10:26:50 -0500 (Wed, 28 Jan 2009)
New Revision: 5753
Modified:
trunk/tests/src/org/jboss/messaging/tests/integration/remoting/NetworkAddressTestBase.java
Log:
uncommented testConnectorToServerAcceptingAListOfHosts()
it was failing on the CI server but now we only use IPv4 addresses, it should pass again on the CI server
Modified: trunk/tests/src/org/jboss/messaging/tests/integration/remoting/NetworkAddressTestBase.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/integration/remoting/NetworkAddressTestBase.java 2009-01-28 14:39:49 UTC (rev 5752)
+++ trunk/tests/src/org/jboss/messaging/tests/integration/remoting/NetworkAddressTestBase.java 2009-01-28 15:26:50 UTC (rev 5753)
@@ -145,26 +145,26 @@
testConnection(acceptorEntry.getValue().getHostName(), connectorEntry.getValue().getHostAddress(), false);
}
-// public void testConnectorToServerAcceptingAListOfHosts() throws Exception
-// {
-// Map<NetworkInterface, InetAddress> map = getAddressForEachNetworkInterface();
-// if (map.size() <= 1)
-// {
-// System.err.println("There must be at least 2 network interfaces: test will not be executed");
-// return;
-// }
-//
-// Set<Entry<NetworkInterface, InetAddress>> set = map.entrySet();
-// Iterator<Entry<NetworkInterface, InetAddress>> iterator = set.iterator();
-// Entry<NetworkInterface, InetAddress> entry1 = iterator.next();
-// Entry<NetworkInterface, InetAddress> entry2 = iterator.next();
-//
-// String listOfHosts = entry1.getValue().getHostAddress() + ", " + entry2.getValue().getHostAddress();
-//
-// testConnection(listOfHosts, entry1.getValue().getHostAddress(), true);
-// testConnection(listOfHosts, entry2.getValue().getHostAddress(), true);
-// }
+ public void testConnectorToServerAcceptingAListOfHosts() throws Exception
+ {
+ Map<NetworkInterface, InetAddress> map = getAddressForEachNetworkInterface();
+ if (map.size() <= 1)
+ {
+ System.err.println("There must be at least 2 network interfaces: test will not be executed");
+ return;
+ }
+ Set<Entry<NetworkInterface, InetAddress>> set = map.entrySet();
+ Iterator<Entry<NetworkInterface, InetAddress>> iterator = set.iterator();
+ Entry<NetworkInterface, InetAddress> entry1 = iterator.next();
+ Entry<NetworkInterface, InetAddress> entry2 = iterator.next();
+
+ String listOfHosts = entry1.getValue().getHostAddress() + ", " + entry2.getValue().getHostAddress();
+
+ testConnection(listOfHosts, entry1.getValue().getHostAddress(), true);
+ testConnection(listOfHosts, entry2.getValue().getHostAddress(), true);
+ }
+
public void testConnectorToServerAcceptingAListOfHosts_2() throws Exception
{
Map<NetworkInterface, InetAddress> map = getAddressForEachNetworkInterface();
More information about the jboss-cvs-commits
mailing list