org.objectweb.jonas.jtests.clients.entity
Class F_Relation_oobEC2
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_oobEC2
- All Implemented Interfaces:
- junit.framework.Test
- public class F_Relation_oobEC2
- extends A_Relation
This is an advanced test suite for home interface on entity bean CMP2.
Beans used: oob/A1, oob/A2
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_oobEC2
public F_Relation_oobEC2(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 'a3' 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
_testBasicSetEmpty
public void _testBasicSetEmpty(int tx)
throws java.lang.Exception
- Set a relation to empty : a3.assignB("b3")
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
_testBasicSetEmptyNull
public void _testBasicSetEmptyNull(int tx)
throws java.lang.Exception
- Set a relation to empty : a3.assignB(null)
testBasicSetEmptyNullTxNo
public void testBasicSetEmptyNullTxNo()
throws java.lang.Exception
testBasicSetEmptyNullTxCall
public void testBasicSetEmptyNullTxCall()
throws java.lang.Exception
testBasicSetEmptyNullTxCont
public void testBasicSetEmptyNullTxCont()
throws java.lang.Exception
testBasicSetEmptyNullTxRb
public void testBasicSetEmptyNullTxRb()
throws java.lang.Exception
_testCohSetOne
public void _testCohSetOne(int tx)
throws java.lang.Exception
- test coherence relation one to one bidirectionnel,
A1.assignB(B2) => A1.retreiveB()=B2 && B2.retreiveA()=A1 && B1.retreiveA()=null && A2.retreiveB()=null
testCohSetOneTxNo
public void testCohSetOneTxNo()
throws java.lang.Exception
testCohSetOneTxCall
public void testCohSetOneTxCall()
throws java.lang.Exception
_testCohWithoutRelation
public void _testCohWithoutRelation(int tx)
throws java.lang.Exception
- test coherence relation one to one bidirectionnel,
A3.assignB(B3)=>A3.retreiveB()==B3 && B3.retreiveB()==A3
testBasicCohWithoutRelation
public void testBasicCohWithoutRelation()
throws java.lang.Exception
testBasicCohWithoutRelationTxCall
public void testBasicCohWithoutRelationTxCall()
throws java.lang.Exception
_testCohAlreadyAssign
public void _testCohAlreadyAssign(int tx)
throws java.lang.Exception
- test coherence relation one to one bidirectionnel,
A1.assignB(B3)=>A1.retreiveB()==B3 && B1.retreiveB()==null && B2.retreiveB()=null
testCohAlreadyAssign
public void testCohAlreadyAssign()
throws java.lang.Exception
testCohAlreadyAssignTxCall
public void testCohAlreadyAssignTxCall()
throws java.lang.Exception
_testCohSetNull
public void _testCohSetNull(int tx)
throws java.lang.Exception
- test coherence relation one to one bidirectionnel,
A1.assignB(null)=>A1.retreiveB()==null && B1.retreiveB()==null
testCohSetNull
public void testCohSetNull()
throws java.lang.Exception
testCohSetNullTxCall
public void testCohSetNullTxCall()
throws java.lang.Exception
_testCohRemoveA
public void _testCohRemoveA(int tx)
throws java.lang.Exception
- test coherence relation one to one bidirectionnel,
A1.remove=>A1removed && B1.retreiveA()==null
testCohRemoveATxNo
public void testCohRemoveATxNo()
throws java.lang.Exception
testCohRemoveATxCall
public void testCohRemoveATxCall()
throws java.lang.Exception
testCohRemoveATxRb
public void testCohRemoveATxRb()
throws java.lang.Exception
_testCohBeanRemoveA
public void _testCohBeanRemoveA(int tx)
throws java.lang.Exception
- test coherence relation one to one bidirectionnel,
Ahome.remove(a1)=>A1removed && B1.retreiveA()==null
Same as _testCohRemoveA except that the called remove method is on the bean
instead of the home.
testCohBeanRemoveATxNo
public void testCohBeanRemoveATxNo()
throws java.lang.Exception
testCohBeanRemoveATxCall
public void testCohBeanRemoveATxCall()
throws java.lang.Exception
testCohBeanRemoveATxRb
public void testCohBeanRemoveATxRb()
throws java.lang.Exception
_testCohRemoveB
public void _testCohRemoveB(int tx)
throws java.lang.Exception
- test coherence relation one to one bidirectionnel,
Bhome.remove(b1)=>B1 removed && A1.retreiveB()==null
testCohRemoveBTxNo
public void testCohRemoveBTxNo()
throws java.lang.Exception
testCohRemoveBTxCall
public void testCohRemoveBTxCall()
throws java.lang.Exception
testCohRemoveBTxRb
public void testCohRemoveBTxRb()
throws java.lang.Exception
_testCohBeanRemoveB
public void _testCohBeanRemoveB(int tx)
throws java.lang.Exception
- test coherence relation one to one bidirectionnel,
B1.remove=>B1 removed && A1.retreiveB()==null
Same as _testCohRemoveB except that the called remove method is on the bean
instead of the home.
testCohBeanRemoveBTxNo
public void testCohBeanRemoveBTxNo()
throws java.lang.Exception
testCohBeanRemoveBTxCall
public void testCohBeanRemoveBTxCall()
throws java.lang.Exception
testCohBeanRemoveBTxRb
public void testCohBeanRemoveBTxRb()
throws java.lang.Exception
suite
public static junit.framework.Test suite()
main
public static void main(java.lang.String[] args)