[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/idle ...
Ron Sigal
ron_sigal at yahoo.com
Wed Dec 20 04:13:32 EST 2006
User: rsigal
Date: 06/12/20 04:13:32
Modified: src/tests/org/jboss/test/remoting/transport/socket/timeout/idle
Tag: remoting_2_x IdleTimeoutClientTest.java
Log:
JBREM-650: Added getTransport().
Revision Changes Path
No revision
No revision
1.1.2.2 +9 -5 JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/idle/IdleTimeoutClientTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: IdleTimeoutClientTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/idle/IdleTimeoutClientTest.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- IdleTimeoutClientTest.java 3 Nov 2006 15:56:31 -0000 1.1.2.1
+++ IdleTimeoutClientTest.java 20 Dec 2006 09:13:32 -0000 1.1.2.2
@@ -1,11 +1,10 @@
package org.jboss.test.remoting.transport.socket.timeout.idle;
-import junit.framework.TestCase;
import EDU.oswego.cs.dl.util.concurrent.SynchronizedInt;
-import org.jboss.remoting.transport.Connector;
-import org.jboss.remoting.InvokerLocator;
-import org.jboss.remoting.Client;
+import junit.framework.TestCase;
import org.apache.log4j.Logger;
+import org.jboss.remoting.Client;
+import org.jboss.remoting.InvokerLocator;
/**
* @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
@@ -19,6 +18,11 @@
private Logger logger = Logger.getRootLogger();
+ protected String getTransport()
+ {
+ return "socket";
+ }
+
public static void main(String[] args) throws Throwable
{
IdleTimeoutClientTest rt = new IdleTimeoutClientTest();
@@ -28,7 +32,7 @@
public void testRunClients() throws Throwable
{
- String locatorURI = "socket://localhost:54000/?clientMaxPoolSize=50&timeout=10000";
+ String locatorURI = getTransport() + "://localhost:54000/?clientMaxPoolSize=50&timeout=10000";
InvokerLocator locator = new InvokerLocator(locatorURI);
Client client = new Client(locator);
client.connect();
More information about the jboss-cvs-commits
mailing list