org.objectweb.jonas.jtests.clients.entity
Class F_Relation_omuEC2
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--org.objectweb.jonas.jtests.util.JTestCase
|
+--org.objectweb.jonas.jtests.clients.entity.A_Relation
|
+--org.objectweb.jonas.jtests.clients.entity.F_Relation_omuEC2
- All Implemented Interfaces:
- junit.framework.Test
- public class F_Relation_omuEC2
- extends A_Relation
For testing one-to-many unidirectional relationships
- Author:
- S.Chassande-Barrioz, Helene Joanin
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 |
ahome
protected static AHomeRemote ahome
bhome
protected static BHomeRemote bhome
F_Relation_omuEC2
public F_Relation_omuEC2(java.lang.String name)
setUp
protected void setUp()
- Description copied from class:
JTestCase
- common setUp routine, used for every test.
- Overrides:
setUp
in class JTestCase
_testBasicGetEmpty
public void _testBasicGetEmpty(int tx)
throws java.lang.Exception
- Check that the bean 'as0' has no relation.
testBasicGetEmptyTxNo
public void testBasicGetEmptyTxNo()
throws java.lang.Exception
testBasicGetEmptyTxCall
public void testBasicGetEmptyTxCall()
throws java.lang.Exception
testBasicGetEmptyTxCont
public void testBasicGetEmptyTxCont()
throws java.lang.Exception
_testBasicGetOne
public void _testBasicGetOne(int tx)
throws java.lang.Exception
- Check that the bean 'as1' has only one relation with 'bs1_1'.
testBasicGetOneTxNo
public void testBasicGetOneTxNo()
throws java.lang.Exception
testBasicGetOneTxCall
public void testBasicGetOneTxCall()
throws java.lang.Exception
testBasicGetOneTxCont
public void testBasicGetOneTxCont()
throws java.lang.Exception
testBasicGetOneTxRb
public void testBasicGetOneTxRb()
throws java.lang.Exception
_testBasicGetMany
public void _testBasicGetMany(int tx)
throws java.lang.Exception
- Check that the bean 'as2' has many relations with 'bs2_1', 'bs2_2', 'bs2_3'.
testBasicGetManyTxNo
public void testBasicGetManyTxNo()
throws java.lang.Exception
testBasicGetManyTxCall
public void testBasicGetManyTxCall()
throws java.lang.Exception
testBasicGetManyTxCont
public void testBasicGetManyTxCont()
throws java.lang.Exception
_testBasicSetEmpty
public void _testBasicSetEmpty(int tx)
throws java.lang.Exception
- Set a relation to empty.
Before: as1 -> bs1_1
After: as1 bs1_1
testBasicSetEmptyTxNo
public void testBasicSetEmptyTxNo()
throws java.lang.Exception
testBasicSetEmptyTxCall
public void testBasicSetEmptyTxCall()
throws java.lang.Exception
testBasicSetEmptyTxCont
public void testBasicSetEmptyTxCont()
throws java.lang.Exception
testBasicSetEmptyTxRb
public void testBasicSetEmptyTxRb()
throws java.lang.Exception
_testBasicClear
public void _testBasicClear(int tx)
throws java.lang.Exception
- Set a relation to empty by clearing the collection.
Before: as1 -> bs1_1
After: as1 bs1_1
testBasicClearTxNo
public void testBasicClearTxNo()
throws java.lang.Exception
testBasicClearTxCall
public void testBasicClearTxCall()
throws java.lang.Exception
testBasicClearTxCont
public void testBasicClearTxCont()
throws java.lang.Exception
testBasicClearTxRb
public void testBasicClearTxRb()
throws java.lang.Exception
_testBasicSetOne
public void _testBasicSetOne(int tx)
throws java.lang.Exception
- Set a empty relation with 1 element.
This added element was'nt already in an other relation.
Before: as0 b0
After: as0 -> b0
testBasicSetOneTxNo
public void testBasicSetOneTxNo()
throws java.lang.Exception
testBasicSetOneTxCall
public void testBasicSetOneTxCall()
throws java.lang.Exception
testBasicSetOneTxCont
public void testBasicSetOneTxCont()
throws java.lang.Exception
testBasicSetOneTxRb
public void testBasicSetOneTxRb()
throws java.lang.Exception
_testBasicAddOne
public void _testBasicAddOne(int tx)
throws java.lang.Exception
- Add an element to a empty relation.
Same as _testBasicSetOne except that we add the element in the collection
instead of we set directly the collection.
Before: as0 bs0
After: as0 -> bs0
testBasicAddOneTxNo
public void testBasicAddOneTxNo()
throws java.lang.Exception
testBasicAddOneTxCall
public void testBasicAddOneTxCall()
throws java.lang.Exception
testBasicAddOneTxCont
public void testBasicAddOneTxCont()
throws java.lang.Exception
testBasicAddOneTxRb
public void testBasicAddOneTxRb()
throws java.lang.Exception
_testBasicSetMulti
public void _testBasicSetMulti(int tx)
throws java.lang.Exception
- Re-Set a relation with N element.
Before: as1 -> bs1_1
bs0
bs3
After: as1 -> bs0
as1 -> bs3
bs1_1
testBasicSetMultiTxNo
public void testBasicSetMultiTxNo()
throws java.lang.Exception
testBasicSetMultiTxCall
public void testBasicSetMultiTxCall()
throws java.lang.Exception
testBasicSetMultiTxCont
public void testBasicSetMultiTxCont()
throws java.lang.Exception
testBasicSetMultiTxRb
public void testBasicSetMultiTxRb()
throws java.lang.Exception
_testBasicAddMulti
public void _testBasicAddMulti(int tx)
throws java.lang.Exception
- Add an element to a relation already multiple.
Before: as1 -> bs1_1
bs0
After: as1 -> bs1_1
as1 -> bs0
testBasicAddMultiTxNo
public void testBasicAddMultiTxNo()
throws java.lang.Exception
testBasicAddMultiTxCall
public void testBasicAddMultiTxCall()
throws java.lang.Exception
testBasicAddMultiTxCont
public void testBasicAddMultiTxCont()
throws java.lang.Exception
testBasicAddMultiTxRb
public void testBasicAddMultiTxRb()
throws java.lang.Exception
_testBasicRemoveInRel
public void _testBasicRemoveInRel(int tx)
throws java.lang.Exception
- Remove an element in a relation.
Before: a3 -> b3_1
Change: a3.retrieveB().remove(b3_1)
After: a3 b3_1
See Spec chapter 10.3.7.4, change example: a1.getB().remove(b1n)
testBasicRemoveInRelTxNo
public void testBasicRemoveInRelTxNo()
throws java.lang.Exception
testBasicRemoveInRelTxCall
public void testBasicRemoveInRelTxCall()
throws java.lang.Exception
testBasicRemoveInRelTxCont
public void testBasicRemoveInRelTxCont()
throws java.lang.Exception
testBasicRemoveInRelTxRb
public void testBasicRemoveInRelTxRb()
throws java.lang.Exception
_testCohRemove
public void _testCohRemove(int tx)
throws java.lang.Exception
- Remove a bean B which is in a relation.
Before: a3 -> b3_1
change: B.remove(b3_1)
After: a3
testCohRemoveTxNo
public void testCohRemoveTxNo()
throws java.lang.Exception
testCohRemoveTxCall
public void testCohRemoveTxCall()
throws java.lang.Exception
testCohRemoveTxRb
public void testCohRemoveTxRb()
throws java.lang.Exception
_testCohBeanRemove
public void _testCohBeanRemove(int tx)
throws java.lang.Exception
- Remove a bean B which is in a relation.
Same as _testCohRemove except that the rcalled remove method is on the bean
instead of the home.
Before: a3 -> b3_1
change: B.remove(b3_1)
After: a3
testCohBeanRemoveTxNo
public void testCohBeanRemoveTxNo()
throws java.lang.Exception
testCohBeanRemoveTxCall
public void testCohBeanRemoveTxCall()
throws java.lang.Exception
testCohBeanRemoveTxRb
public void testCohBeanRemoveTxRb()
throws java.lang.Exception
_testCohSetOne
public void _testCohSetOne(int tx)
throws java.lang.Exception
- Set a empty relation with 1 element.
This added element was already in a other relation.
Before: a0
a3 -> b3_1
Change: a0.assignB({b3_1})
After: a0 -> b3_1
a3
testCohSetOneTxNo
public void testCohSetOneTxNo()
throws java.lang.Exception
testCohSetOneTxCall
public void testCohSetOneTxCall()
throws java.lang.Exception
testCohSetOneTxCont
public void testCohSetOneTxCont()
throws java.lang.Exception
testCohSetOneTxRb
public void testCohSetOneTxRb()
throws java.lang.Exception
_testCohAddOneInMulti
public void _testCohAddOneInMulti(int tx)
throws java.lang.Exception
- Add an element to a relation already multiple.
The element was already in a relation.
Check also the assignement rules for relationships.
Before: a1 -> b1_1
-> b1_2
-> b1_3
a3 -> b3_1
Change: a1.addInB(b3_1)
After: a1 -> b1_1
-> b1_2
-> b1_3
-> b3_1
a3
See Spec chapter 10.3.7.4, change example: a1.getB().add(b2m)
testCohAddOneInMultiTxNo
public void testCohAddOneInMultiTxNo()
throws java.lang.Exception
testCohAddOneInMultiTxCall
public void testCohAddOneInMultiTxCall()
throws java.lang.Exception
testCohAddOneInMultiTxCont
public void testCohAddOneInMultiTxCont()
throws java.lang.Exception
testCohAddOneInMultiTxRb
public void testCohAddOneInMultiTxRb()
throws java.lang.Exception
_testCohAddAllInMulti
public void _testCohAddAllInMulti(int tx)
throws java.lang.Exception
- Add elements in an relationship.
The relationship was not already empty.
One element added had no relation, the other element had a relation
testCohAddAllInMultiTxNo
public void testCohAddAllInMultiTxNo()
throws java.lang.Exception
testCohAddAllInMultiTxCall
public void testCohAddAllInMultiTxCall()
throws java.lang.Exception
testCohAddAllInMultiTxCont
public void testCohAddAllInMultiTxCont()
throws java.lang.Exception
testCohAddAllInMultiTxRb
public void testCohAddAllInMultiTxRb()
throws java.lang.Exception
_testCohSetMulti
public void _testCohSetMulti(int tx)
throws java.lang.Exception
testCohSetMultiTxNo
public void testCohSetMultiTxNo()
throws java.lang.Exception
testCohSetMultiTxCall
public void testCohSetMultiTxCall()
throws java.lang.Exception
testCohSetMultiTxCont
public void testCohSetMultiTxCont()
throws java.lang.Exception
testCohSetMultiTxRb
public void testCohSetMultiTxRb()
throws java.lang.Exception
_testCohSetMultiVarious
public void _testCohSetMultiVarious(int tx)
throws java.lang.Exception
- Set a relation to multiple
Some of element was already in this relation, other was in other relation,
and other wasn't in any relation.
Check also the assignement rules for relationships.
testCohSetMultiVariousTxNo
public void testCohSetMultiVariousTxNo()
throws java.lang.Exception
testCohSetMultiVariousTxCall
public void testCohSetMultiVariousTxCall()
throws java.lang.Exception
testCohSetMultiVariousTxCont
public void testCohSetMultiVariousTxCont()
throws java.lang.Exception
testCohSetMultiVariousTxRb
public void testCohSetMultiVariousTxRb()
throws java.lang.Exception
suite
public static junit.framework.Test suite()
main
public static void main(java.lang.String[] args)