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 Changes Path
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 -0000 1.4
+++ EnterpriseEntityStressTestCase.java 12 Apr 2002 21:56:59 -0000 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 test will not work with commit-option C, because
+ // all fields of the entity bean are nulled out on activation
}
}
1.7 +1 -0
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.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- EnterpriseEntityTest.java 19 Sep 2001 19:16:54 -0000 1.6
+++ EnterpriseEntityTest.java 12 Apr 2002 21:56:59 -0000 1.7
@@ -323,6 +323,7 @@
catch (Throwable t)
{
log.error(name + " caught an exception, dying", t);
+ t.printStackTrace();
running = false;
setFailed();
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development