[jboss-remoting-commits] JBoss Remoting SVN: r5186 - remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/web.
jboss-remoting-commits at lists.jboss.org
jboss-remoting-commits at lists.jboss.org
Sun May 10 02:43:28 EDT 2009
Author: ron.sigal at jboss.com
Date: 2009-05-10 02:43:28 -0400 (Sun, 10 May 2009)
New Revision: 5186
Modified:
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/web/WebInvokerTestClient.java
Log:
JBREM-1079: Made some changes to support http and servlet transports.
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-10 06:42:56 UTC (rev 5185)
+++ remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/web/WebInvokerTestClient.java 2009-05-10 06:43:28 UTC (rev 5186)
@@ -93,6 +93,15 @@
response = remotingClient.invoke(WebInvocationHandler.STRING_RETURN_PARAM, metadata);
System.out.println("Fifth response should be " + WebInvocationHandler.RESPONSE_VALUE + " and was: " + response);
assertEquals(WebInvocationHandler.RESPONSE_VALUE, response);
+
+ response = remotingClient.invoke(WebInvocationHandler.GET_OBJECT_NAME, metadata);
+ System.out.println("ObjectName: " + response);
+ String locatorURI = getLocatorURI();
+ int index = locatorURI.indexOf(':');
+ String transport = locatorURI.substring(0, index);
+ String params = ("servlet".equals(transport) ? ",createUniqueObjectName=true" : "");
+ String port = ("servlet".equals(transport) ? "8080" : "8888");
+ assertEquals("jboss.remoting:service=invoker,transport= " + transport + ",host=localhost,port=" + port + params, response);
checkUserAgent(remotingClient, metadata);
More information about the jboss-remoting-commits
mailing list