Author: ron.sigal(a)jboss.com
Date: 2009-05-13 02:27:53 -0400 (Wed, 13 May 2009)
New Revision: 5212
Modified:
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/web/WebInvokerTestClient.java
Log:
JBREM-1130: Allows server to use either "localhost" or "127.0.0.1" to
accommodate InvokerLocator in Remoting 1.x, for versioning tests.
Modified:
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/web/WebInvokerTestClient.java
===================================================================
---
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/web/WebInvokerTestClient.java 2009-05-13
05:47:42 UTC (rev 5211)
+++
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/web/WebInvokerTestClient.java 2009-05-13
06:27:53 UTC (rev 5212)
@@ -101,8 +101,18 @@
String transport = locatorURI.substring(0, index);
String params = (isServlet(transport) ? ",createUniqueObjectName=true"
: "");
String port = "servlet".equals(transport) ? "8080" :
("sslservlet".equals(transport) ? "8443" : "8888");
- assertEquals("jboss.remoting:service=invoker,transport= " + transport
+ ",host=localhost,port=" + port + params, response);
-
+ System.out.println("ObjectName: " + response);
+ String host = null;
+ if (((String) response).indexOf("127.0.0.1") >= 0)
+ {
+ host = "127.0.0.1";
+ }
+ else
+ {
+ host = "localhost";
+ }
+ assertEquals("jboss.remoting:service=invoker,transport= " + transport
+ ",host=" + host + ",port=" + port + params, response);
+
checkUserAgent(remotingClient, metadata);
makeExceptionInvocation(remotingClient, metadata);