org.objectweb.jonas.jtests.clients.entity
Class F_Relation_oouEC2

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_oouEC2
All Implemented Interfaces:
junit.framework.Test

public class F_Relation_oouEC2
extends A_Relation

This is an advanced test suite for home interface on entity bean CMP2.


Field Summary
protected static AHomeRemote ahome
           
protected static BHomeRemote bhome
           
 
Fields inherited from class org.objectweb.jonas.jtests.util.JTestCase
ictx, isInit, jonasName, msgerror, testtorun, utx
 
Constructor Summary
F_Relation_oouEC2(java.lang.String name)
           
 
Method Summary
 void _testBasicGetEmpty(int tx)
          Check that the bean 'a3' has no relation.
 void _testBasicSetEmpty(int tx)
          Set a relation to empty : a3.assignB("b3")
 void _testBasicSetEmptyNull(int tx)
          Set a relation to empty : a3.assignB(null)
 void _testCohAlreadyAssign(int tx)
          test coherence relation one to one bidirectionnel, A1.assignB(B3)=>A1.retreiveB()==B3
 void _testCohBeanRemove(int tx)
          test coherence relation one to one bidirectionnel, B1.remove=>B1 removed && A1.retreiveB()==null Same as _testCohRemove except that the called remove method is on the bean instead of the home.
 void _testCohRemove(int tx)
          test coherence relation one to one bidirectionnel, Bhome.remove(b1)=>B1 removed && A1.retreiveB()==null
 void _testCohSetNull(int tx)
          test coherence relation one to one bidirectionnel, A1.assignB(null)=>A1.retreiveB()==null
 void _testCohSetOne(int tx)
          test coherence relation one to one bidirectionnel, A1.assignB(B2) => A1.retreiveB()=B2 && A2.retreiveB()=null
 void _testCohWithoutRelation(int tx)
          test coherence relation one to one bidirectionnel, A3.assignB(B3)=>A3.retreiveB()==B3
static void main(java.lang.String[] args)
           
protected  void setUp()
          common setUp routine, used for every test.
static junit.framework.Test suite()
           
 void testBasicCohWithoutRelation()
           
 void testBasicCohWithoutRelationTxCall()
           
 void testBasicGetEmptyTxCall()
           
 void testBasicGetEmptyTxCont()
           
 void testBasicGetEmptyTxNo()
           
 void testBasicSetEmptyNullTxCall()
           
 void testBasicSetEmptyNullTxCont()
           
 void testBasicSetEmptyNullTxNo()
           
 void testBasicSetEmptyNullTxRb()
           
 void testBasicSetEmptyTxCall()
           
 void testBasicSetEmptyTxCont()
           
 void testBasicSetEmptyTxNo()
           
 void testBasicSetEmptyTxRb()
           
 void testCohAlreadyAssign()
           
 void testCohAlreadyAssignTxCall()
           
 void testCohBeanRemoveNoTx()
           
 void testCohBeanRemoveTxCall()
           
 void testCohBeanRemoveTxRb()
           
 void testCohRemoveNoTx()
           
 void testCohRemoveTxCall()
           
 void testCohRemoveTxRb()
           
 void testCohSetNull()
           
 void testCohSetNullTxCall()
           
 void testCohSetOneTxCall()
           
 void testCohSetOneTxCont()
           
 void testCohSetOneTxNo()
           
 void testCohSetOneTxRb()
           
 
Methods inherited from class org.objectweb.jonas.jtests.clients.entity.A_Relation
getIntAfterDash, getStringBeforeDash
 
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
 

Field Detail

ahome

protected static AHomeRemote ahome

bhome

protected static BHomeRemote bhome
Constructor Detail

F_Relation_oouEC2

public F_Relation_oouEC2(java.lang.String name)
Method Detail

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 && A2.retreiveB()=null

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

_testCohWithoutRelation

public void _testCohWithoutRelation(int tx)
                             throws java.lang.Exception
test coherence relation one to one bidirectionnel, A3.assignB(B3)=>A3.retreiveB()==B3

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

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

testCohSetNull

public void testCohSetNull()
                    throws java.lang.Exception

testCohSetNullTxCall

public void testCohSetNullTxCall()
                          throws java.lang.Exception

_testCohRemove

public void _testCohRemove(int tx)
                    throws java.lang.Exception
test coherence relation one to one bidirectionnel, Bhome.remove(b1)=>B1 removed && A1.retreiveB()==null

testCohRemoveNoTx

public void testCohRemoveNoTx()
                       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
test coherence relation one to one bidirectionnel, B1.remove=>B1 removed && A1.retreiveB()==null Same as _testCohRemove except that the called remove method is on the bean instead of the home.

testCohBeanRemoveNoTx

public void testCohBeanRemoveNoTx()
                           throws java.lang.Exception

testCohBeanRemoveTxCall

public void testCohBeanRemoveTxCall()
                             throws java.lang.Exception

testCohBeanRemoveTxRb

public void testCohBeanRemoveTxRb()
                           throws java.lang.Exception

suite

public static junit.framework.Test suite()

main

public static void main(java.lang.String[] args)