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

Ron Sigal ron_sigal at yahoo.com
Wed Apr 11 19:51:08 EDT 2007


  User: rsigal  
  Date: 07/04/11 19:51:08

  Modified:    src/tests/org/jboss/test/remoting/transport/bisocket/timeout 
                        Tag: remoting_2_2_0_GA
                        BisocketPerInvocationTimeoutTestCase.java
  Log:
  JBREM-731, JBREM-732:  No longer need to override testTimeoutReset().
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2.4.1 +2 -40     JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/timeout/BisocketPerInvocationTimeoutTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BisocketPerInvocationTimeoutTestCase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/timeout/BisocketPerInvocationTimeoutTestCase.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.2.4.1
  diff -u -b -r1.1.2.2 -r1.1.2.2.4.1
  --- BisocketPerInvocationTimeoutTestCase.java	6 Feb 2007 23:21:22 -0000	1.1.2.2
  +++ BisocketPerInvocationTimeoutTestCase.java	11 Apr 2007 23:51:08 -0000	1.1.2.2.4.1
  @@ -1,13 +1,5 @@
   package org.jboss.test.remoting.transport.bisocket.timeout;
   
  -import java.lang.reflect.Field;
  -import java.util.HashMap;
  -import java.util.List;
  -
  -import org.jboss.remoting.ServerInvoker;
  -import org.jboss.remoting.transport.ClientInvoker;
  -import org.jboss.remoting.transport.socket.MicroSocketClientInvoker;
  -import org.jboss.remoting.transport.socket.SocketWrapper;
   import org.jboss.test.remoting.transport.socket.timeout.SocketPerInvocationTimeoutTestCase;
   
   
  @@ -15,43 +7,13 @@
    * See javadoc for PerInvocationTimeoutTestRoot.
    *   
    * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
  - * @version $Revision: 1.1.2.2 $
  + * @version $Revision: 1.1.2.2.4.1 $
    * <p>
    * Copyright Feb 6, 2007
    * </p>
    */
   public class BisocketPerInvocationTimeoutTestCase extends SocketPerInvocationTimeoutTestCase
   {
  -   /**
  -    * This test verifies that the timeout for a socket wrapper gets reset after
  -    * an invocation with an invocation specific timeout has been executed.
  -    */
  -   public void testTimeoutReset() throws Throwable
  -   {
  -      log.info("entering " + getName());
  -      ClientInvoker invoker = client.getInvoker();
  -      assertTrue(invoker instanceof MicroSocketClientInvoker);
  -      Field field = MicroSocketClientInvoker.class.getDeclaredField("pool");
  -      field.setAccessible(true);
  -      List pool = (List) field.get(invoker);
  -      // Note that an invoker is created during the connect phase.
  -      assertEquals(1, pool.size());
  -      
  -      Object response = client.invoke(NO_WAIT);
  -      assertEquals(NO_WAIT, response);
  -      assertEquals(1, pool.size());
  -      SocketWrapper socket = (SocketWrapper) pool.get(0);
  -      assertEquals(CONFIGURED_TIMEOUT, socket.getTimeout());
  -      
  -      HashMap metadata = new HashMap();
  -      metadata.put(ServerInvoker.TIMEOUT, "1000");
  -      response = client.invoke(NO_WAIT, metadata);
  -      assertEquals(NO_WAIT, response);
  -      assertEquals(1, pool.size());
  -      socket = (SocketWrapper) pool.get(0);
  -      assertEquals(CONFIGURED_TIMEOUT, socket.getTimeout());
  -   }
  -   
      protected String getTransport()
      {
         return "bisocket";
  
  
  



More information about the jboss-cvs-commits mailing list