From: Ron S. <ron...@ya...> - 2006-05-21 18:11:43
|
User: rsigal Date: 06/05/21 14:11:36 Modified: src/tests/org/jboss/test/remoting/transport/multiplex/config ClientConfigurationCallbackConnectorTestClient.java Log: JBREM-446: Changed a test for connect address to match the way it is set in MultiplexClientInvoker. It seems that, running in cruisecontrol, gets a hostname other than localhost. Revision Changes Path 1.2 +4 -2 JBossRemoting/src/tests/org/jboss/test/remoting/transport/multiplex/config/ClientConfigurationCallbackConnectorTestClient.java (In the diff below, changes in quantity of whitespace are not shown.) Index: ClientConfigurationCallbackConnectorTestClient.java =================================================================== RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/multiplex/config/ClientConfigurationCallbackConnectorTestClient.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- ClientConfigurationCallbackConnectorTestClient.java 20 May 2006 04:36:38 -0000 1.1 +++ ClientConfigurationCallbackConnectorTestClient.java 21 May 2006 18:11:36 -0000 1.2 @@ -24,6 +24,7 @@ import java.io.IOException; import java.lang.reflect.Field; +import java.net.InetAddress; import java.util.HashMap; import org.jboss.remoting.Client; @@ -191,7 +192,8 @@ field = MultiplexServerInvoker.class.getDeclaredField("multiplexConnectHost"); field.setAccessible(true); - assertEquals(sgi.getConnectAddress().getHostName(), ClientConfigurationTestServer.connectorHost); + InetAddress connectAddress = InetAddress.getByName(ClientConfigurationTestServer.connectorHost); + assertEquals(sgi.getConnectAddress(), connectAddress); field = MultiplexServerInvoker.class.getDeclaredField("multiplexConnectPort"); field.setAccessible(true); |