|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--org.objectweb.jonas.jtests.util.JTestCase | +--org.objectweb.jonas.jtests.clients.entity.A_AdvancedHomeEC
This is an advanced test suite for home interface on entity bean CMP. Beans used: annuaire
Fields inherited from class org.objectweb.jonas.jtests.util.JTestCase |
ictx, isInit, jonasName, msgerror, testtorun, utx |
Constructor Summary | |
A_AdvancedHomeEC(java.lang.String name)
|
Method Summary | |
abstract PersonneHome |
getHome()
return PersonneHome, that can be either CMP v1 or CMP v2 bean. |
protected void |
setUp()
common setUp routine, used for every test. |
void |
testCreateAndBusiness()
Test Create + Business Method inside the same Tx |
void |
testCreateInTx()
test Create inside a Transaction. |
void |
testCreateNull()
Verify that we can create an entity with a null name |
void |
testCreateRemoveInTx()
Test create + remove in transactions |
void |
testDuplicateKey()
Test DuplicateKeyException. |
void |
testDuplicateKeyTx()
Test DuplicateKeyException. |
void |
testFindAllEnum()
test du findAll, returning an Enumeration. |
void |
testFinderInTx()
Test finder in transactions |
void |
testFindTwice()
test 2 findByPrimaryKey in the same tx, with an update between the 2 calls. |
void |
testIsolation()
Combination of other tests This test the transaction isolation in entity bean container this test must never hang |
void |
testManyCreate()
Test many Create calls |
void |
testRemove()
Test bean.remove : create / find / remove / find |
void |
testRemoveInTx()
Test bean.remove inside a tx: create / find / remove / find |
void |
testRemovePk()
Test remove(pk): create / find / remove(pk) / find |
void |
testRemovePkInTx()
Test remove(pk) inside transaction: create / find / remove(pk) / find |
void |
testRemovePkNonExistent()
Test remove(pk) of a non-existent pk. |
void |
testRemovePkNonExistentInTx()
Test remove(pk) of a non-existent pk inside transaction. |
void |
testRemovePKRB()
Test remove by PK in a tx rolled back we modify the bean instance outside tx, then we check that the bean state has not been changed by the rolled back remove |
void |
testRemoveRB()
Test remove in a tx rolled back we modify the bean instance outside tx, then we check that the bean state has not been changed by the rolled back remove |
void |
testSimpleCreateInTx()
test a simple Create inside a Transaction. |
void |
testSimpleRemove()
test a simple Remove Find an instance already in database and remove it. |
Methods inherited from class org.objectweb.jonas.jtests.util.JTestCase |
debug, getDBEnv, random, sleep, tearDown, testEmpty, unloadBeans, useBeans |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public A_AdvancedHomeEC(java.lang.String name)
Method Detail |
protected void setUp()
JTestCase
setUp
in class JTestCase
public abstract PersonneHome getHome()
public void testFindAllEnum() throws java.lang.Exception
public void testCreateInTx() throws java.lang.Exception
public void testSimpleCreateInTx() throws java.lang.Exception
public void testSimpleRemove() throws java.lang.Exception
public void testCreateAndBusiness() throws java.lang.Exception
public void testRemovePk() throws java.lang.Exception
public void testRemovePkInTx() throws java.lang.Exception
public void testRemovePkNonExistent() throws java.lang.Exception
public void testRemovePkNonExistentInTx() throws java.lang.Exception
public void testRemove() throws java.lang.Exception
public void testRemovePKRB() throws java.lang.Exception
public void testRemoveRB() throws java.lang.Exception
public void testRemoveInTx() throws java.lang.Exception
public void testFinderInTx() throws java.lang.Exception
public void testCreateRemoveInTx() throws java.lang.Exception
public void testFindTwice() throws java.lang.Exception
public void testDuplicateKeyTx() throws java.lang.Exception
public void testDuplicateKey() throws java.lang.Exception
public void testCreateNull() throws java.lang.Exception
public void testManyCreate() throws java.lang.Exception
public void testIsolation() throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |