[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout ...

Ron Sigal ron_sigal at yahoo.com
Wed Dec 27 01:26:54 EST 2006


  User: rsigal  
  Date: 06/12/27 01:26:54

  Modified:    src/tests/org/jboss/test/remoting/transport/socket/timeout  
                        TimeoutServerTest.java TimeoutClientTest.java
  Log:
  JBREM-650:  Added ability to override transport and, in some cases, port.
  
  Revision  Changes    Path
  1.6       +7 -1      JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/TimeoutServerTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TimeoutServerTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/TimeoutServerTest.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- TimeoutServerTest.java	8 Jun 2006 02:29:27 -0000	1.5
  +++ TimeoutServerTest.java	27 Dec 2006 06:26:54 -0000	1.6
  @@ -40,13 +40,19 @@
   public class TimeoutServerTest extends ServerTestCase
   {
   //   private String locatorURI = "socket://localhost:8899/?timeout=3000";
  -   private String locatorURI = "socket://localhost:8899";
  +//   private String locatorURI = "socket://localhost:8899";
      private Connector connector = null;
   
  +   protected String getTransport()
  +   {
  +      return "socket";
  +   }
  +   
      public void setUp() throws Exception
      {
         Map config = new HashMap();
         config.put("timeout", "3000");
  +      String locatorURI = getTransport() + "://localhost:8899";
         InvokerLocator locator = new InvokerLocator(locatorURI);
         connector = new Connector(locator,  config);
         connector.create();
  
  
  
  1.7       +7 -1      JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/TimeoutClientTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TimeoutClientTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/timeout/TimeoutClientTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- TimeoutClientTest.java	8 Jun 2006 02:29:17 -0000	1.6
  +++ TimeoutClientTest.java	27 Dec 2006 06:26:54 -0000	1.7
  @@ -35,12 +35,18 @@
   public class TimeoutClientTest extends TestCase
   {
   //   private String locatorURI = "socket://localhost:8899/?timeout=3000";
  -   private String locatorURI = "socket://localhost:8899";
  +//   private String locatorURI = "socket://localhost:8899";
  +
  +   protected String getTransport()
  +   {
  +      return "socket";
  +   }
   
      public void testTimeout() throws Exception
      {
         Map config = new HashMap();
         config.put("timeout", "3000");
  +      String locatorURI = getTransport() + "://localhost:8899";
         Client client = new Client(new InvokerLocator(locatorURI), config);
         client.connect();
   
  
  
  



More information about the jboss-cvs-commits mailing list