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

Ron Sigal ron_sigal at yahoo.com
Wed Dec 27 01:14:29 EST 2006


  User: rsigal  
  Date: 06/12/27 01:14:29

  Added:       src/tests/org/jboss/test/remoting/transport/bisocket/timeout/idle      
                        BisocketIdleTimeoutTestCase.java
                        BisocketInactiveIdleTimeoutTestCase.java
                        BisocketIdleTimeoutClientTest.java
                        BisocketInactiveIdleTimeoutTestServer.java
                        BisocketInactiveIdleTimeoutClientTest.java
                        BisocketIdleTimeoutTestServer.java
  Log:
  JBREM-650: Unit tests for bisocket transport.
  
  Revision  Changes    Path
  1.2       +48 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/timeout/idle/BisocketIdleTimeoutTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BisocketIdleTimeoutTestCase.java
  ===================================================================
  RCS file: BisocketIdleTimeoutTestCase.java
  diff -N BisocketIdleTimeoutTestCase.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ BisocketIdleTimeoutTestCase.java	27 Dec 2006 06:14:29 -0000	1.2
  @@ -0,0 +1,48 @@
  +package org.jboss.test.remoting.transport.bisocket.timeout.idle;
  +
  +import org.jboss.jrunit.harness.TestDriver;
  +
  +public class BisocketIdleTimeoutTestCase extends TestDriver
  +{
  +   public void declareTestClasses()
  +   {
  +      addTestClasses(BisocketIdleTimeoutClientTest.class.getName(),
  +                     2,
  +                     BisocketIdleTimeoutTestServer.class.getName());
  +   }
  +
  +   /**
  +    * How long to wait for test results to be returned from the client(s).  If goes longer than the
  +    * specified limit, will throw an exception and kill the running test cases.  Default value is
  +    * RESULTS_TIMEOUT.
  +    *
  +    * @return
  +    */
  +   protected long getResultsTimeout()
  +   {
  +      return 360000;
  +   }
  +
  +   /**
  +    * How long for the server test case to wait for tear down message.  If exceeds timeout,
  +    * will throw exception.  The default value is TEARDOWN_TIMEOUT.
  +    *
  +    * @return
  +    */
  +   protected long getTearDownTimeout()
  +   {
  +      return 360000;
  +   }
  +
  +   /**
  +    * How long to allow each of the test cases to run their tests.  If exceeds this timeout
  +    * will throw exception and kill tests.  The default value is RUN_TEST_TIMEOUT.
  +    *
  +    * @return
  +    */
  +   protected long getRunTestTimeout()
  +   {
  +      return 360000;
  +   }
  +
  +}
  \ No newline at end of file
  
  
  
  1.2       +48 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/timeout/idle/BisocketInactiveIdleTimeoutTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BisocketInactiveIdleTimeoutTestCase.java
  ===================================================================
  RCS file: BisocketInactiveIdleTimeoutTestCase.java
  diff -N BisocketInactiveIdleTimeoutTestCase.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ BisocketInactiveIdleTimeoutTestCase.java	27 Dec 2006 06:14:29 -0000	1.2
  @@ -0,0 +1,48 @@
  +package org.jboss.test.remoting.transport.bisocket.timeout.idle;
  +
  +import org.jboss.jrunit.harness.TestDriver;
  +
  +public class BisocketInactiveIdleTimeoutTestCase extends TestDriver
  +{
  +   public void declareTestClasses()
  +   {
  +      addTestClasses(BisocketInactiveIdleTimeoutClientTest.class.getName(),
  +                     1,
  +                     BisocketInactiveIdleTimeoutTestServer.class.getName());
  +   }
  +
  +   /**
  +    * How long to wait for test results to be returned from the client(s).  If goes longer than the
  +    * specified limit, will throw an exception and kill the running test cases.  Default value is
  +    * RESULTS_TIMEOUT.
  +    *
  +    * @return
  +    */
  +   protected long getResultsTimeout()
  +   {
  +      return 360000;
  +   }
  +
  +   /**
  +    * How long for the server test case to wait for tear down message.  If exceeds timeout,
  +    * will throw exception.  The default value is TEARDOWN_TIMEOUT.
  +    *
  +    * @return
  +    */
  +   protected long getTearDownTimeout()
  +   {
  +      return 360000;
  +   }
  +
  +   /**
  +    * How long to allow each of the test cases to run their tests.  If exceeds this timeout
  +    * will throw exception and kill tests.  The default value is RUN_TEST_TIMEOUT.
  +    *
  +    * @return
  +    */
  +   protected long getRunTestTimeout()
  +   {
  +      return 360000;
  +   }
  +
  +}
  
  
  
  1.2       +14 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/timeout/idle/BisocketIdleTimeoutClientTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BisocketIdleTimeoutClientTest.java
  ===================================================================
  RCS file: BisocketIdleTimeoutClientTest.java
  diff -N BisocketIdleTimeoutClientTest.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ BisocketIdleTimeoutClientTest.java	27 Dec 2006 06:14:29 -0000	1.2
  @@ -0,0 +1,14 @@
  +package org.jboss.test.remoting.transport.bisocket.timeout.idle;
  +
  +import org.jboss.test.remoting.transport.socket.timeout.idle.IdleTimeoutClientTest;
  +
  +/**
  + * @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
  + */
  +public class BisocketIdleTimeoutClientTest extends IdleTimeoutClientTest
  +{
  +   protected String getTransport()
  +   {
  +      return "bisocket";
  +   }
  +}
  
  
  
  1.2       +28 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/timeout/idle/BisocketInactiveIdleTimeoutTestServer.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BisocketInactiveIdleTimeoutTestServer.java
  ===================================================================
  RCS file: BisocketInactiveIdleTimeoutTestServer.java
  diff -N BisocketInactiveIdleTimeoutTestServer.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ BisocketInactiveIdleTimeoutTestServer.java	27 Dec 2006 06:14:29 -0000	1.2
  @@ -0,0 +1,28 @@
  +package org.jboss.test.remoting.transport.bisocket.timeout.idle;
  +
  +import org.jboss.test.remoting.transport.socket.timeout.idle.InactiveIdleTimeoutTestServer;
  +
  +/**
  + * This is just like IdleTimeoutTestServer except instead of
  + * looking for server threads that are still in read mode waiting for
  + * data from client, want to test for idle server threads that finished with
  + * client/server connection and are just sitting in the thread pool waiting to
  + * be re-used.
  + *
  + * @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
  + */
  +public class BisocketInactiveIdleTimeoutTestServer extends InactiveIdleTimeoutTestServer
  +{
  +   protected String getTransport()
  +   {
  +      return "bisocket";
  +   }
  +   
  +   public static void main(String[] args) throws Throwable
  +   {
  +      BisocketInactiveIdleTimeoutTestServer rt = new BisocketInactiveIdleTimeoutTestServer();
  +      rt.setUp();
  +      Thread.sleep(45000);
  +      rt.tearDown();
  +   }
  +}
  
  
  
  1.2       +14 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/timeout/idle/BisocketInactiveIdleTimeoutClientTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BisocketInactiveIdleTimeoutClientTest.java
  ===================================================================
  RCS file: BisocketInactiveIdleTimeoutClientTest.java
  diff -N BisocketInactiveIdleTimeoutClientTest.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ BisocketInactiveIdleTimeoutClientTest.java	27 Dec 2006 06:14:29 -0000	1.2
  @@ -0,0 +1,14 @@
  +package org.jboss.test.remoting.transport.bisocket.timeout.idle;
  +
  +import org.jboss.test.remoting.transport.socket.timeout.idle.InactiveIdleTimeoutClientTest;
  +
  +/**
  + * @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
  + */
  +public class BisocketInactiveIdleTimeoutClientTest extends InactiveIdleTimeoutClientTest
  +{
  +   protected String getTransport()
  +   {
  +      return "bisocket";
  +   }
  +}
  
  
  
  1.2       +21 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/timeout/idle/BisocketIdleTimeoutTestServer.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BisocketIdleTimeoutTestServer.java
  ===================================================================
  RCS file: BisocketIdleTimeoutTestServer.java
  diff -N BisocketIdleTimeoutTestServer.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ BisocketIdleTimeoutTestServer.java	27 Dec 2006 06:14:29 -0000	1.2
  @@ -0,0 +1,21 @@
  +package org.jboss.test.remoting.transport.bisocket.timeout.idle;
  +
  +import org.jboss.test.remoting.transport.socket.timeout.idle.IdleTimeoutTestServer;
  +
  +/**
  + * @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
  + */
  +public class BisocketIdleTimeoutTestServer extends IdleTimeoutTestServer
  +{
  +   protected String getTransport()
  +   {
  +      return "bisocket";
  +   }
  +   
  +   public static void main(String[] args) throws Throwable
  +   {
  +      BisocketIdleTimeoutTestServer rt = new BisocketIdleTimeoutTestServer();
  +      rt.startServer();
  +   }
  +}
  +
  
  
  



More information about the jboss-cvs-commits mailing list