| |
|
| org.objectweb.jonas.jtests.util.JTestCase org.objectweb.jonas.jtests.clients.entity.F_FamilyEC2
F_FamilyEC2 | public class F_FamilyEC2 extends JTestCase (Code) | | This test suite tests relations on beans of the same type.
Relations used are OOB, OMU, OMB.
It uses the bean family only.
Each test is independant from each other, since DataBase is
cleaned up after each test (See teardown).
author: Philippe Durieux |
Field Summary | |
protected boolean | isInit |
isInit | protected boolean isInit(Code) | | |
F_FamilyEC2 | public F_FamilyEC2(String name)(Code) | | Standard constructor
|
perfs | protected static void perfs() throws Exception(Code) | | Run tests for perf mesures
|
setUp | protected void setUp()(Code) | | setup is called before each test case.
If not initialized, load the family bean and lookup the Home.
|
suite | public static Test suite()(Code) | | Run all the tests of this suite.
|
suite1 | public static Test suite1()(Code) | | Run a selected set of the test cases
|
suite2 | public static Test suite2()(Code) | | Run a selected set of the test cases
F10 pass (should fails) but cleanup fails !!!
|
tearDown | protected void tearDown() throws Exception(Code) | | teardown is called after each test case.
Notes for debugging :
To see DataBase state after a test is passed :
Replace the cleanall() by sync(false).
|
testCreateHomeRB | public void testCreateHomeRB() throws Exception(Code) | | This test a create followed by a home method that will
be rolled back (pb with reusing of contexts)
|
testDivorce | public void testDivorce() throws Exception(Code) | | This test should pass.
|
testFindAll | public void testFindAll() throws Exception(Code) | | Test the findAll without transaction.
|
testManChildren | public void testManChildren() throws Exception(Code) | | This test should pass now.
The problem was that the finder method looks in the Database, and
that the data has not been written, because outside transaction.
|
testRemoveFather | public void testRemoveFather() throws Exception(Code) | | This test should pass.
|
testRemoveFatherTx | public void testRemoveFatherTx() throws Exception(Code) | | This test should pass.
|
testRemoveHTCreateIT | public void testRemoveHTCreateIT() throws Exception(Code) | | Test that a create can be done after a remove outside tx.
This test should pass.
|
testRemoveHTCreateIT1 | public void testRemoveHTCreateIT1() throws Exception(Code) | | Test that a create can be done after a remove outside tx.
This test should pass.
|
testRemoveMother | public void testRemoveMother() throws Exception(Code) | | This test should pass.
|
testRemoveMotherTx | public void testRemoveMotherTx() throws Exception(Code) | | This test should pass.
|
testRemoveRb | public void testRemoveRb() throws Exception(Code) | | This test should pass
|
testRemoveRb2 | public void testRemoveRb2() throws Exception(Code) | | This test should pass
|
testRemoveRb3 | public void testRemoveRb3() throws Exception(Code) | | This test should pass
|
testRemoveRbSync | public void testRemoveRbSync() throws Exception(Code) | | Same than testRemoveRb, with a sync before transaction.
This test should pass
|
testRollbackDivorce | public void testRollbackDivorce() throws Exception(Code) | | This test should pass.
|
testRollbackUnion | public void testRollbackUnion() throws Exception(Code) | | This test should pass now (bug fixed in create HT)
|
|
|
|