[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/lock/test EnterpriseEntityStressTestCase.java

2002-04-12 Thread Andreas Schaefer

  User: schaefera
  Date: 02/04/12 16:54:12

  Added:   src/main/org/jboss/test/lock/test Tag: Branch_2_4
EnterpriseEntityStressTestCase.java
  Log:
  Backport of the JBoss 3.0 stress tests w/o JMS and deadlock tests.
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.5.2.1   +75 -23
jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java
  
  Index: EnterpriseEntityStressTestCase.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- EnterpriseEntityStressTestCase.java   12 Apr 2002 21:56:59 -  1.5
  +++ EnterpriseEntityStressTestCase.java   12 Apr 2002 23:54:12 -  1.5.2.1
  @@ -38,12 +38,17 @@
 TestSuite suite = new TestSuite();
   
   
  -  // Test ejb.plugins.lock.QueuedPessimisticEJBLock
 suite.addTest(new TestSuite(Entity_Option_A_Test.class));
 suite.addTest(new TestSuite(Entity_Option_B_Test.class));
 suite.addTest(new TestSuite(Entity_Option_C_Test.class));
 suite.addTest(new TestSuite(Entity_Option_D_Test.class));
   
  +  // Test ejb.plugins.lock.QueuedPessimisticEJBLock
  +  suite.addTest(new TestSuite(Entity_Option_A_Queued_Test.class));
  +  suite.addTest(new TestSuite(Entity_Option_B_Queued_Test.class));
  +  suite.addTest(new TestSuite(Entity_Option_C_Queued_Test.class));
  +  suite.addTest(new TestSuite(Entity_Option_D_Queued_Test.class));
  +
 suite.addTest(new TestSuite(Entity_Option_C_Multi_Test.class));
   
 return getDeploySetup(suite, "locktest.jar");
  @@ -81,13 +86,6 @@
 {
super(name, "EnterpriseEntity_B");
 }
  -  
  -  public void testB2B() throws Exception
  -  {
  - // This test will not work with commit-option B, because
  - // all fields of the entity bean are nulled out on activation
  -  }
  -  
  }
   
  /**
  @@ -105,11 +103,6 @@
 {
super(name, "EnterpriseEntity_C");
 }
  -  public void testB2B() throws Exception
  -  {
  - // This test will not work with commit-option C, because
  - // all fields of the entity bean are nulled out on activation
  -  }
  }
   
  /**
  @@ -132,6 +125,75 @@
  /**
   * #Description of the Class
   */
  +   public static class Entity_Option_A_Queued_Test
  +  extends EnterpriseEntityTest
  +   {
  +  /**
  +   * Constructor for the Entity_Option_A_Queued_Test object
  +   *
  +   * @param name  Description of Parameter
  +   */
  +  public Entity_Option_A_Queued_Test(String name)
  +  {
  + super(name, "EnterpriseEntity_A_Queued");
  +  }
  +   }
  +
  +   /**
  +* #Description of the Class
  +*/
  +   public static class Entity_Option_B_Queued_Test
  +  extends EnterpriseEntityTest
  +   {
  +  /**
  +   * Constructor for the Entity_Option_B_Queued_Test object
  +   *
  +   * @param name  Description of Parameter
  +   */
  +  public Entity_Option_B_Queued_Test(String name)
  +  {
  + super(name, "EnterpriseEntity_B_Queued");
  +  }
  +   }
  +
  +   /**
  +* #Description of the Class
  +*/
  +   public static class Entity_Option_C_Queued_Test
  +  extends EnterpriseEntityTest
  +   {
  +  /**
  +   * Constructor for the Entity_Option_C_Queued_Test object
  +   *
  +   * @param name  Description of Parameter
  +   */
  +  public Entity_Option_C_Queued_Test(String name)
  +  {
  + super(name, "EnterpriseEntity_C_Queued");
  +  }
  +   }
  +
  +   /**
  +* #Description of the Class
  +*/
  +   public static class Entity_Option_D_Queued_Test
  +  extends EnterpriseEntityTest
  +   {
  +  /**
  +   * Constructor for the Entity_Option_D_Queued_Test object
  +   *
  +   * @param name  Description of Parameter
  +   */
  +  public Entity_Option_D_Queued_Test(String name)
  +  {
  + super(name, "EnterpriseEntity_D_Queued");
  +  }
  +   }
  +
  +
  +   /**
  +* #Description of the Class
  +*/
  public static class Entity_Option_B_Multi_Test
 extends EnterpriseEntityTest
  {
  @@ -144,11 +206,6 @@
 {
super(name, "EnterpriseEntity_B_Multi");
 }
  -  public void testB2B() throws Exception
  -  {
  - // This test will not work with commit-option B, because
  - // all fields of the entity bean are nulled out on activation
  -  }
  }
   
  /**
  @@ -165,11 +222,6 @@
 public Entity_Option_C_Multi_Test(String name)
 {
super(name, "EnterpriseEntity_C_Mul

[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/lock/test EnterpriseEntityStressTestCase.java EnterpriseEntityTest.java

2002-04-12 Thread Bill Burke

  User: patriot1burke
  Date: 02/04/12 14:56:59

  Modified:src/main/org/jboss/test/lock/test
EnterpriseEntityStressTestCase.java
EnterpriseEntityTest.java
  Log:
  cleaned up some tests
  
  Revision  ChangesPath
  1.5   +23 -75
jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java
  
  Index: EnterpriseEntityStressTestCase.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- EnterpriseEntityStressTestCase.java   29 Jan 2002 22:00:04 -  1.4
  +++ EnterpriseEntityStressTestCase.java   12 Apr 2002 21:56:59 -  1.5
  @@ -38,17 +38,12 @@
 TestSuite suite = new TestSuite();
   
   
  +  // Test ejb.plugins.lock.QueuedPessimisticEJBLock
 suite.addTest(new TestSuite(Entity_Option_A_Test.class));
 suite.addTest(new TestSuite(Entity_Option_B_Test.class));
 suite.addTest(new TestSuite(Entity_Option_C_Test.class));
 suite.addTest(new TestSuite(Entity_Option_D_Test.class));
   
  -  // Test ejb.plugins.lock.QueuedPessimisticEJBLock
  -  suite.addTest(new TestSuite(Entity_Option_A_Queued_Test.class));
  -  suite.addTest(new TestSuite(Entity_Option_B_Queued_Test.class));
  -  suite.addTest(new TestSuite(Entity_Option_C_Queued_Test.class));
  -  suite.addTest(new TestSuite(Entity_Option_D_Queued_Test.class));
  -
 suite.addTest(new TestSuite(Entity_Option_C_Multi_Test.class));
   
 return getDeploySetup(suite, "locktest.jar");
  @@ -86,6 +81,13 @@
 {
super(name, "EnterpriseEntity_B");
 }
  +  
  +  public void testB2B() throws Exception
  +  {
  + // This test will not work with commit-option B, because
  + // all fields of the entity bean are nulled out on activation
  +  }
  +  
  }
   
  /**
  @@ -103,6 +105,11 @@
 {
super(name, "EnterpriseEntity_C");
 }
  +  public void testB2B() throws Exception
  +  {
  + // This test will not work with commit-option C, because
  + // all fields of the entity bean are nulled out on activation
  +  }
  }
   
  /**
  @@ -125,75 +132,6 @@
  /**
   * #Description of the Class
   */
  -   public static class Entity_Option_A_Queued_Test
  -  extends EnterpriseEntityTest
  -   {
  -  /**
  -   * Constructor for the Entity_Option_A_Queued_Test object
  -   *
  -   * @param name  Description of Parameter
  -   */
  -  public Entity_Option_A_Queued_Test(String name)
  -  {
  - super(name, "EnterpriseEntity_A_Queued");
  -  }
  -   }
  -
  -   /**
  -* #Description of the Class
  -*/
  -   public static class Entity_Option_B_Queued_Test
  -  extends EnterpriseEntityTest
  -   {
  -  /**
  -   * Constructor for the Entity_Option_B_Queued_Test object
  -   *
  -   * @param name  Description of Parameter
  -   */
  -  public Entity_Option_B_Queued_Test(String name)
  -  {
  - super(name, "EnterpriseEntity_B_Queued");
  -  }
  -   }
  -
  -   /**
  -* #Description of the Class
  -*/
  -   public static class Entity_Option_C_Queued_Test
  -  extends EnterpriseEntityTest
  -   {
  -  /**
  -   * Constructor for the Entity_Option_C_Queued_Test object
  -   *
  -   * @param name  Description of Parameter
  -   */
  -  public Entity_Option_C_Queued_Test(String name)
  -  {
  - super(name, "EnterpriseEntity_C_Queued");
  -  }
  -   }
  -
  -   /**
  -* #Description of the Class
  -*/
  -   public static class Entity_Option_D_Queued_Test
  -  extends EnterpriseEntityTest
  -   {
  -  /**
  -   * Constructor for the Entity_Option_D_Queued_Test object
  -   *
  -   * @param name  Description of Parameter
  -   */
  -  public Entity_Option_D_Queued_Test(String name)
  -  {
  - super(name, "EnterpriseEntity_D_Queued");
  -  }
  -   }
  -
  -
  -   /**
  -* #Description of the Class
  -*/
  public static class Entity_Option_B_Multi_Test
 extends EnterpriseEntityTest
  {
  @@ -206,6 +144,11 @@
 {
super(name, "EnterpriseEntity_B_Multi");
 }
  +  public void testB2B() throws Exception
  +  {
  + // This test will not work with commit-option B, because
  + // all fields of the entity bean are nulled out on activation
  +  }
  }
   
  /**
  @@ -222,6 +165,11 @@
 public Entity_Option_C_Multi_Test(String name)
 {
super(name, "EnterpriseEntity_C_Multi");
  +  }
  +  public void testB2B() throws Exception
  +  {
  + // This

[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/lock/test EnterpriseEntityStressTestCase.java SpinUnitTestCase.java

2002-01-29 Thread David Jencks

  User: d_jencks
  Date: 02/01/29 14:00:05

  Modified:src/main/org/jboss/test/lock/test
EnterpriseEntityStressTestCase.java
SpinUnitTestCase.java
  Log:
  simplified deployment calls
  
  Revision  ChangesPath
  1.4   +1 -1  
jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java
  
  Index: EnterpriseEntityStressTestCase.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- EnterpriseEntityStressTestCase.java   2001/09/18 22:00:44 1.3
  +++ EnterpriseEntityStressTestCase.java   2002/01/29 22:00:04 1.4
  @@ -51,7 +51,7 @@
   
 suite.addTest(new TestSuite(Entity_Option_C_Multi_Test.class));
   
  -  return getJ2eeSetup(suite, "locktest.jar");
  +  return getDeploySetup(suite, "locktest.jar");
  }
   
  /**
  
  
  
  1.4   +2 -2  
jbosstest/src/main/org/jboss/test/lock/test/SpinUnitTestCase.java
  
  Index: SpinUnitTestCase.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/lock/test/SpinUnitTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SpinUnitTestCase.java 2001/09/18 22:00:44 1.3
  +++ SpinUnitTestCase.java 2002/01/29 22:00:04 1.4
  @@ -28,7 +28,7 @@
* Test of EJB call invocation overhead.
*
* @author[EMAIL PROTECTED]
  - * @version   $Revision: 1.3 $
  + * @version   $Revision: 1.4 $
*/
   public class SpinUnitTestCase extends JBossTestCase
   {
  @@ -168,7 +168,7 @@
   
  public static Test suite() throws Exception
  {
  -  return getJ2eeSetup(SpinUnitTestCase.class, "locktest.jar");
  +  return getDeploySetup(SpinUnitTestCase.class, "locktest.jar");
  }
   
   
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/lock/test EnterpriseEntityStressTestCase.java EnterpriseEntityTest.java SpinUnitTestCase.java

2001-09-18 Thread David Jencks

  User: d_jencks
  Date: 01/09/18 15:00:44

  Modified:src/main/org/jboss/test/lock/test
EnterpriseEntityStressTestCase.java
EnterpriseEntityTest.java SpinUnitTestCase.java
  Log:
  Changed tests to deploy/undeploy only once per testcase file.  Moved clearAuthCache 
to JBossTestServices
  
  Revision  ChangesPath
  1.3   +2 -2  
jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java
  
  Index: EnterpriseEntityStressTestCase.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- EnterpriseEntityStressTestCase.java   2001/09/15 15:07:10 1.2
  +++ EnterpriseEntityStressTestCase.java   2001/09/18 22:00:44 1.3
  @@ -33,7 +33,7 @@
   *
   * @return   The test suite
   */
  -   public static Test suite()
  +   public static Test suite() throws Exception
  {
 TestSuite suite = new TestSuite();
   
  @@ -51,7 +51,7 @@
   
 suite.addTest(new TestSuite(Entity_Option_C_Multi_Test.class));
   
  -  return suite;
  +  return getJ2eeSetup(suite, "locktest.jar");
  }
   
  /**
  
  
  
  1.5   +0 -12 
jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityTest.java
  
  Index: EnterpriseEntityTest.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- EnterpriseEntityTest.java 2001/09/15 15:07:10 1.4
  +++ EnterpriseEntityTest.java 2001/09/18 22:00:44 1.5
  @@ -144,8 +144,6 @@
   */
  protected void setUp() throws Exception
  {
  -  super.setUp();
  -  deployJ2ee("locktest.jar");
 nbThreads = DEFAULT_THREAD_COUNT;
 iterations = DEFAULT_ITERATIONS;
 getLog().debug("+++ Setting up: " + getClass().getName() + " test: " + 
getName());
  @@ -182,16 +180,6 @@
 failed = true;
  }
   
  -   /**
  -* The teardown method for JUnit
  -*
  -* @exception Exception  Description of Exception
  -*/
  -   protected void tearDown() throws Exception
  -   {
  -  undeployJ2ee("locktest.jar");
  -  super.tearDown();
  -   }
   
  /**
   * #Description of the Method
  
  
  
  1.3   +10 -10
jbosstest/src/main/org/jboss/test/lock/test/SpinUnitTestCase.java
  
  Index: SpinUnitTestCase.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/lock/test/SpinUnitTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SpinUnitTestCase.java 2001/09/15 15:07:10 1.2
  +++ SpinUnitTestCase.java 2001/09/18 22:00:44 1.3
  @@ -28,7 +28,7 @@
* Test of EJB call invocation overhead.
*
* @author[EMAIL PROTECTED]
  - * @version   $Revision: 1.2 $
  + * @version   $Revision: 1.3 $
*/
   public class SpinUnitTestCase extends JBossTestCase
   {
  @@ -139,15 +139,11 @@
  {
 try
 {
  - super.setUp();
  - getLog().debug("+++ Performing the TestSuite setup");
  - deployJ2ee("locktest.jar");
  - //Deploy.deploy(filename);
create();
 }
 catch (Exception e)
 {
  - e.printStackTrace();
  + getLog().error("setup error in create: ", e);
throw e;
 }
  }
  @@ -162,16 +158,20 @@
 try
 {
remove();
  - undeployJ2ee("locktest.jar");
  - super.tearDown();
  -
 }
 catch (Exception e)
 {
  - e.printStackTrace();
  + getLog().error("teardown error in remove: ", e);
throw e;
 }
  }
  +
  +   public static Test suite() throws Exception
  +   {
  +  return getJ2eeSetup(SpinUnitTestCase.class, "locktest.jar");
  +   }
  +
  +
   
  /**
   * #Description of the Class
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/lock/test EnterpriseEntityStressTestCase.java EnterpriseEntityTest.java SpinUnitTestCase.java

2001-09-15 Thread David Jencks

  User: d_jencks
  Date: 01/09/15 08:07:10

  Modified:src/main/org/jboss/test/lock/test
EnterpriseEntityStressTestCase.java
EnterpriseEntityTest.java SpinUnitTestCase.java
  Log:
  Made to work, changed to JBossTestCase and logging.
  
  Revision  ChangesPath
  1.2   +229 -127  
jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java
  
  Index: EnterpriseEntityStressTestCase.java
  ===
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EnterpriseEntityStressTestCase.java   2001/09/12 04:55:40 1.1
  +++ EnterpriseEntityStressTestCase.java   2001/09/15 15:07:10 1.2
  @@ -1,127 +1,229 @@
  -package org.jboss.test.lock.test;
  -
  -import junit.framework.Test;
  -import junit.framework.TestCase;
  -import junit.framework.TestSuite;
  -
  -import org.jboss.test.util.Deploy;
  -
  -public class EnterpriseEntityStressTestCase 
  -   extends TestCase
  -{
  -   public EnterpriseEntityStressTestCase(String name) {
  -  super(name);
  -   }
  -   
  -   /**
  -* Setup the test suite.
  -*/
  -   public static Test suite() {
  -  TestSuite suite = new TestSuite();
  -
  -  // add a test case to deploy our support applications
  -  String filename = "locktest.jar";
  -  suite.addTest(new Deploy.Deployer(filename));
  -
  -  suite.addTest(new TestSuite(Entity_Option_A_Test.class));
  -  suite.addTest(new TestSuite(Entity_Option_B_Test.class));
  -  suite.addTest(new TestSuite(Entity_Option_C_Test.class));
  -  suite.addTest(new TestSuite(Entity_Option_D_Test.class));
  -
  -  // Test ejb.plugins.lock.QueuedPessimisticEJBLock
  -  suite.addTest(new TestSuite(Entity_Option_A_Queued_Test.class));
  -  suite.addTest(new TestSuite(Entity_Option_B_Queued_Test.class));
  -  suite.addTest(new TestSuite(Entity_Option_C_Queued_Test.class));
  -  suite.addTest(new TestSuite(Entity_Option_D_Queued_Test.class));
  -
  -  suite.addTest(new TestSuite(Entity_Option_C_Multi_Test.class));
  -
  -  // add a test case to undeploy our support applications
  -  suite.addTest(new Deploy.Undeployer(filename));
  -  
  -  return suite;
  -   }
  -
  -   public static class Entity_Option_A_Test
  -  extends EnterpriseEntityTest
  -   {
  -  public Entity_Option_A_Test(String name) {
  - super(name, "EnterpriseEntity_A");
  -  }
  -   }
  -
  -   public static class Entity_Option_B_Test
  -  extends EnterpriseEntityTest
  -   {
  -  public Entity_Option_B_Test(String name) {
  - super(name, "EnterpriseEntity_B");
  -  }
  -   }
  -
  -   public static class Entity_Option_C_Test
  -  extends EnterpriseEntityTest
  -   {
  -  public Entity_Option_C_Test(String name) {
  - super(name, "EnterpriseEntity_C");
  -  }
  -   }
  -
  -   public static class Entity_Option_D_Test
  -  extends EnterpriseEntityTest
  -   {
  -  public Entity_Option_D_Test(String name) {
  - super(name, "EnterpriseEntity_D");
  -  }
  -   }
  -
  -   public static class Entity_Option_A_Queued_Test
  -  extends EnterpriseEntityTest
  -   {
  -  public Entity_Option_A_Queued_Test(String name) {
  - super(name, "EnterpriseEntity_A_Queued");
  -  }
  -   }
  -
  -   public static class Entity_Option_B_Queued_Test
  -  extends EnterpriseEntityTest
  -   {
  -  public Entity_Option_B_Queued_Test(String name) {
  - super(name, "EnterpriseEntity_B_Queued");
  -  }
  -   }
  -
  -   public static class Entity_Option_C_Queued_Test
  -  extends EnterpriseEntityTest
  -   {
  -  public Entity_Option_C_Queued_Test(String name) {
  - super(name, "EnterpriseEntity_C_Queued");
  -  }
  -   }
  -
  -   public static class Entity_Option_D_Queued_Test
  -  extends EnterpriseEntityTest
  -   {
  -  public Entity_Option_D_Queued_Test(String name) {
  - super(name, "EnterpriseEntity_D_Queued");
  -  }
  -   }
  -
  -
  -   public static class Entity_Option_B_Multi_Test
  -  extends EnterpriseEntityTest
  -   {
  -  public Entity_Option_B_Multi_Test(String name) {
  - super(name, "EnterpriseEntity_B_Multi");
  -  }
  -   }
  -
  -   public static class Entity_Option_C_Multi_Test
  -  extends EnterpriseEntityTest
  -   {
  -  public Entity_Option_C_Multi_Test(String name) {
  - super(name, "EnterpriseEntity_C_Multi");
  -  }
  -   }
  -
  -}
  -
  +/*
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
  +package org.jboss.test.lock.test;
  +
  +import junit.framework.Test;
  +import junit.framework.TestCase;
  

[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/lock/test EnterpriseEntityStressTestCase.java SpinUnitTestCase.java Main.java TestSpin.java

2001-09-11 Thread David Jencks

  User: d_jencks
  Date: 01/09/11 21:55:40

  Added:   src/main/org/jboss/test/lock/test
EnterpriseEntityStressTestCase.java
SpinUnitTestCase.java
  Removed: src/main/org/jboss/test/lock/test Main.java TestSpin.java
  Log:
  Changed naming scheme of tests to *UnitTestCase.java for short running tests and 
*StressTestCase.java for lengthy tests.  Made tests-unit and tests-stress targets in 
build.xml
  
  Revision  ChangesPath
  1.1  
jbosstest/src/main/org/jboss/test/lock/test/EnterpriseEntityStressTestCase.java
  
  Index: EnterpriseEntityStressTestCase.java
  ===
  package org.jboss.test.lock.test;
  
  import junit.framework.Test;
  import junit.framework.TestCase;
  import junit.framework.TestSuite;
  
  import org.jboss.test.util.Deploy;
  
  public class EnterpriseEntityStressTestCase 
 extends TestCase
  {
 public EnterpriseEntityStressTestCase(String name) {
super(name);
 }
 
 /**
  * Setup the test suite.
  */
 public static Test suite() {
TestSuite suite = new TestSuite();
  
// add a test case to deploy our support applications
String filename = "locktest.jar";
suite.addTest(new Deploy.Deployer(filename));
  
suite.addTest(new TestSuite(Entity_Option_A_Test.class));
suite.addTest(new TestSuite(Entity_Option_B_Test.class));
suite.addTest(new TestSuite(Entity_Option_C_Test.class));
suite.addTest(new TestSuite(Entity_Option_D_Test.class));
  
// Test ejb.plugins.lock.QueuedPessimisticEJBLock
suite.addTest(new TestSuite(Entity_Option_A_Queued_Test.class));
suite.addTest(new TestSuite(Entity_Option_B_Queued_Test.class));
suite.addTest(new TestSuite(Entity_Option_C_Queued_Test.class));
suite.addTest(new TestSuite(Entity_Option_D_Queued_Test.class));
  
suite.addTest(new TestSuite(Entity_Option_C_Multi_Test.class));
  
// add a test case to undeploy our support applications
suite.addTest(new Deploy.Undeployer(filename));

return suite;
 }
  
 public static class Entity_Option_A_Test
extends EnterpriseEntityTest
 {
public Entity_Option_A_Test(String name) {
   super(name, "EnterpriseEntity_A");
}
 }
  
 public static class Entity_Option_B_Test
extends EnterpriseEntityTest
 {
public Entity_Option_B_Test(String name) {
   super(name, "EnterpriseEntity_B");
}
 }
  
 public static class Entity_Option_C_Test
extends EnterpriseEntityTest
 {
public Entity_Option_C_Test(String name) {
   super(name, "EnterpriseEntity_C");
}
 }
  
 public static class Entity_Option_D_Test
extends EnterpriseEntityTest
 {
public Entity_Option_D_Test(String name) {
   super(name, "EnterpriseEntity_D");
}
 }
  
 public static class Entity_Option_A_Queued_Test
extends EnterpriseEntityTest
 {
public Entity_Option_A_Queued_Test(String name) {
   super(name, "EnterpriseEntity_A_Queued");
}
 }
  
 public static class Entity_Option_B_Queued_Test
extends EnterpriseEntityTest
 {
public Entity_Option_B_Queued_Test(String name) {
   super(name, "EnterpriseEntity_B_Queued");
}
 }
  
 public static class Entity_Option_C_Queued_Test
extends EnterpriseEntityTest
 {
public Entity_Option_C_Queued_Test(String name) {
   super(name, "EnterpriseEntity_C_Queued");
}
 }
  
 public static class Entity_Option_D_Queued_Test
extends EnterpriseEntityTest
 {
public Entity_Option_D_Queued_Test(String name) {
   super(name, "EnterpriseEntity_D_Queued");
}
 }
  
  
 public static class Entity_Option_B_Multi_Test
extends EnterpriseEntityTest
 {
public Entity_Option_B_Multi_Test(String name) {
   super(name, "EnterpriseEntity_B_Multi");
}
 }
  
 public static class Entity_Option_C_Multi_Test
extends EnterpriseEntityTest
 {
public Entity_Option_C_Multi_Test(String name) {
   super(name, "EnterpriseEntity_C_Multi");
}
 }
  
  }
  
  
  
  
  1.1  
jbosstest/src/main/org/jboss/test/lock/test/SpinUnitTestCase.java
  
  Index: SpinUnitTestCase.java
  ===
  package org.jboss.test.lock.test;
  
  import java.io.IOException;
  import java.rmi.RemoteException;
  import javax.ejb.CreateException;
  import javax.ejb.RemoveException;
  import javax.naming.InitialContext;
  import javax.naming.NamingException;
  import javax.rmi.PortableRemoteObject;
  
  import junit.extensions.TestSetup;
  import junit.framewor