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

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


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

  Added:       src/tests/org/jboss/test/remoting/transport/bisocket/deadlock 
                        BisocketShutdownDeadlockTestCase.java
  Log:
  JBREM-650: Unit tests for bisocket transport.
  
  Revision  Changes    Path
  1.2       +36 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/deadlock/BisocketShutdownDeadlockTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BisocketShutdownDeadlockTestCase.java
  ===================================================================
  RCS file: BisocketShutdownDeadlockTestCase.java
  diff -N BisocketShutdownDeadlockTestCase.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ BisocketShutdownDeadlockTestCase.java	27 Dec 2006 06:14:30 -0000	1.2
  @@ -0,0 +1,36 @@
  +/***************************************
  + *                                     *
  + *  JBoss: The OpenSource J2EE WebOS   *
  + *                                     *
  + *  Distributable under LGPL license.  *
  + *  See terms of license at gnu.org.   *
  + *                                     *
  + ***************************************/
  +package org.jboss.test.remoting.transport.bisocket.deadlock;
  +
  +import org.jboss.test.remoting.transport.socket.deadlock.ShutdownDeadlockTestCase;
  +
  +/**
  + * This test case is for JBREM-576.
  + * Test trys to catch deadlock in shutdown where socket client
  + * invoker being use my multiple Clients.  Need one client making
  + * invocations (which will cause sync on pool) and another to
  + * shutdown, which will cause disconnect on socket client invoker,
  + * thus causing it to sync on pool for clearing out the pool.
  + * Since this is an issue of multithreading, is certainly possible
  + * this test will pass even though the deadlock issue still exists.
  + * @author <a href="mailto:tom at jboss.org">Tom Elrod</a>
  + * @author <a href="mailto:ron.sigal at jboss.org">Ron Sigal</a>
  + */
  +public class BisocketShutdownDeadlockTestCase extends ShutdownDeadlockTestCase
  +{
  +   protected String getTransport()
  +   {
  +      return "bisocket";
  +   }
  +   
  +   protected int getPort()
  +   {
  +      return super.getPort() + 11;
  +   }
  +}
  \ No newline at end of file
  
  
  



More information about the jboss-cvs-commits mailing list