[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/localaddress ...
Ron Sigal
ron_sigal at yahoo.com
Wed Nov 21 16:58:22 EST 2007
User: rsigal
Date: 07/11/21 16:58:22
Modified: src/tests/org/jboss/test/remoting/transport/socket/localaddress
Tag: remoting_2_x LocalAddressTestCase.java
Log:
JBREM-792: Updated to confom to new behavior in response to $GET_CLIENT_LOCAL_ADDRESS$ internal message.
Revision Changes Path
No revision
No revision
1.1.6.3 +10 -6 JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/localaddress/Attic/LocalAddressTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LocalAddressTestCase.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/localaddress/Attic/LocalAddressTestCase.java,v
retrieving revision 1.1.6.2
retrieving revision 1.1.6.3
diff -u -b -r1.1.6.2 -r1.1.6.3
--- LocalAddressTestCase.java 1 Sep 2007 00:40:02 -0000 1.1.6.2
+++ LocalAddressTestCase.java 21 Nov 2007 21:58:22 -0000 1.1.6.3
@@ -50,7 +50,7 @@
* Unit test for JBREM-781.
*
* @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
- * @version $Revision: 1.1.6.2 $
+ * @version $Revision: 1.1.6.3 $
* <p>
* Copyright Jul 30, 2007
* </p>
@@ -127,11 +127,15 @@
log.info("connection is good");
// Get address of server.
- Object o = client.invoke("$GET_CLIENT_LOCAL_ADDRESS$");
- assertTrue(o instanceof InvocationResponse);
- InvocationResponse response = (InvocationResponse) o;
- assertTrue(response.getResult() instanceof InetAddress);
- InetAddress newAddress = (InetAddress) response.getResult();
+// Object o = client.invoke("$GET_CLIENT_LOCAL_ADDRESS$");
+// assertTrue(o instanceof InvocationResponse);
+// InvocationResponse response = (InvocationResponse) o;
+// assertTrue(response.getResult() instanceof InetAddress);
+// InetAddress newAddress = (InetAddress) response.getResult();
+
+ // This test is updated to conform to new treatment of this facility.
+ // See JBREM-792.
+ InetAddress newAddress = (InetAddress) client.invoke("$GET_CLIENT_LOCAL_ADDRESS$");
String newLocatorURI = getTransport() + "://" + newAddress.getHostAddress() + ":" + port;
log.info("new locator: " + newLocatorURI);
More information about the jboss-cvs-commits
mailing list