[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/callback/pull/memory/callbackstore ...
Ron Sigal
ron_sigal at yahoo.com
Wed Oct 11 22:53:22 EDT 2006
User: rsigal
Date: 06/10/11 22:53:22
Modified: src/tests/org/jboss/test/remoting/callback/pull/memory/callbackstore
CallbackTestClient.java CallbackTestServer.java
Log:
JBREM-609: Refactored creation of InvokerLocator to allow subclassing.
Revision Changes Path
1.10 +7 -2 JBossRemoting/src/tests/org/jboss/test/remoting/callback/pull/memory/callbackstore/CallbackTestClient.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CallbackTestClient.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/callback/pull/memory/callbackstore/CallbackTestClient.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- CallbackTestClient.java 21 May 2006 04:47:28 -0000 1.9
+++ CallbackTestClient.java 12 Oct 2006 02:53:22 -0000 1.10
@@ -55,8 +55,8 @@
public void createRemotingClient() throws Exception
{
- InvokerLocator locator = new InvokerLocator(locatorURI);
- System.out.println("Calling remoting server with locator uri of: " + locatorURI);
+ InvokerLocator locator = new InvokerLocator(getInvokerLocatorURI());
+ System.out.println("Calling remoting server with locator uri of: " + getInvokerLocatorURI());
// This could have been new Client(locator), but want to show that subsystem param is null
// Could have also been new Client(locator, "sample");
@@ -65,6 +65,11 @@
}
+ protected String getInvokerLocatorURI()
+ {
+ return locatorURI;
+ }
+
public void makeInvocation(String param) throws Throwable
{
Object response = remotingClient.invoke(param, null);
1.7 +7 -2 JBossRemoting/src/tests/org/jboss/test/remoting/callback/pull/memory/callbackstore/CallbackTestServer.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CallbackTestServer.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/callback/pull/memory/callbackstore/CallbackTestServer.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- CallbackTestServer.java 30 Dec 2005 05:26:39 -0000 1.6
+++ CallbackTestServer.java 12 Oct 2006 02:53:22 -0000 1.7
@@ -53,8 +53,8 @@
public void setupServer() throws Exception
{
- InvokerLocator locator = new InvokerLocator(locatorURI);
- System.out.println("Starting remoting server with locator uri of: " + locatorURI);
+ InvokerLocator locator = new InvokerLocator(getInvokerLocatorURI());
+ System.out.println("Starting remoting server with locator uri of: " + getInvokerLocatorURI());
connector = new Connector();
connector.setInvokerLocator(locator.getLocatorURI());
connector.create();
@@ -67,6 +67,11 @@
}
+ protected String getInvokerLocatorURI()
+ {
+ return locatorURI;
+ }
+
public void setUp() throws Exception
{
setupServer();
More information about the jboss-cvs-commits
mailing list