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

Ron Sigal ron_sigal at yahoo.com
Tue Aug 1 00:35:37 EDT 2006


  User: rsigal  
  Date: 06/08/01 00:35:37

  Modified:    src/tests/org/jboss/test/remoting/transport/multiplex 
                        RestartServerTestClient.java
  Log:
  JBREM-534:  Allow second call to Client.invoke() to fail once, in case a stale pooled connection is retrieved.
  
  Revision  Changes    Path
  1.2       +10 -3     JBossRemoting/src/tests/org/jboss/test/remoting/transport/multiplex/RestartServerTestClient.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: RestartServerTestClient.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/multiplex/RestartServerTestClient.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- RestartServerTestClient.java	23 Jul 2006 03:47:45 -0000	1.1
  +++ RestartServerTestClient.java	1 Aug 2006 04:35:37 -0000	1.2
  @@ -35,7 +35,6 @@
   import org.jboss.remoting.callback.HandleCallbackException;
   import org.jboss.remoting.callback.InvokerCallbackHandler;
   import org.jboss.remoting.transport.Connector;
  -import org.jboss.remoting.transport.PortUtil;
   import org.jboss.remoting.transport.multiplex.Multiplex;
   
   /**
  @@ -89,7 +88,15 @@
            is.read();
            
            // Test method invocation on second server.
  +         try
  +         {
            assertEquals(new Integer(7), client.invoke("xyz"));
  +         }
  +         catch (Throwable t)
  +         {
  +            log.info("Client.invoke(\"xyz\") failed: trying one more time");
  +            assertEquals(new Integer(7), client.invoke("xyz"));
  +         }
   
            // Test callbacks on first server.
            callbackLocator = connector.getLocator();
  
  
  



More information about the jboss-cvs-commits mailing list