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

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

public class F_Relation_mnuEC2
extends A_Relation

For testing many-to-many unidirectional relationships

Author:
S.Chassande-Barrioz, J. Camilleri

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_mnuEC2(java.lang.String name)
           
 
Method Summary
 void _testBasicClear(int tx)
          Ckeck clear function
 void _testBasicGetEmpty(int tx)
          Check that the bean 'a3' has no relation.
 void _testBasicSetEmpty(int tx)
          Ckeck the new relation a0-b0
 void _testBasicSetFirst(int tx)
          See §10.3.7.7 of spec : a1.assignB(a3.retrieveB()) => a1.retreiveB().contains("b2") && a1.retreiveB().contains("b3") && a1.retreiveB().contains("b4") && a3.retreiveB().contains("b2") && a3.retreiveB().contains("b3") && a3.retreiveB().contains("b4") &&
 void _testBasicSetRemove(int tx)
          See § 10.3.7.7 of spec : a2.getB().remove(b2) => a2.retreiveB().contains("b1") && a2.retreiveB().contains("b3") &&
 void _testBasicSetSecond(int tx)
          See § 10.3.7.7 of spec : a1.getB().add(b3) => a1.retreiveB().contains("b1") && a1.retreiveB().contains("b2") && a1.retreiveB().contains("b3") &&
 void _testCohBeanRemove(int tx)
          Test of coherence b2.remove() => a1.retrieveB()=null && a2.retrieveB()=null && a3.retrieveB()=null Same as _testCohRemove except that the called remove method is on the bean instead of the home.
 void _testCohRemove(int tx)
          Test of coherence b2.remove() => a1.retrieveB()=null && a2.retrieveB()=null && a3.retrieveB()=null
 void _testCohRemoveInRel(int tx)
          Remove an element in a relation.
static void main(java.lang.String[] args)
           
protected  void setUp()
          common setUp routine, used for every test.
static junit.framework.Test suite()
           
 void testBasicClearTxCall()
           
 void testBasicClearTxCont()
           
 void testBasicClearTxNo()
           
 void testBasicClearTxRb()
           
 void testBasicGetEmptyTxCall()
           
 void testBasicGetEmptyTxCont()
           
 void testBasicGetEmptyTxNo()
           
 void testBasicSetEmptyTxCall()
           
 void testBasicSetEmptyTxCont()
           
 void testBasicSetEmptyTxNo()
           
 void testBasicSetEmptyTxRb()
           
 void testBasicSetFirstTxCall()
           
 void testBasicSetFirstTxCont()
           
 void testBasicSetFirstTxNo()
           
 void testBasicSetFirstTxRb()
           
 void testBasicSetRemoveTxCall()
           
 void testBasicSetRemoveTxCont()
           
 void testBasicSetRemoveTxNo()
           
 void testBasicSetRemoveTxRb()
           
 void testBasicSetSecondTxCall()
           
 void testBasicSetSecondTxCont()
           
 void testBasicSetSecondTxNo()
           
 void testBasicSetSecondTxRb()
           
 void testCohBeanRemoveTxCall()
           
 void testCohBeanRemoveTxNo()
           
 void testCohBeanRemoveTxRb()
           
 void testCohRemoveInRelTxCall()
           
 void testCohRemoveInRelTxCont()
           
 void testCohRemoveInRelTxNo()
           
 void testCohRemoveInRelTxRb()
           
 void testCohRemoveTxCall()
           
 void testCohremoveTxNo()
           
 void testCohRemoveTxRb()
           
 
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_mnuEC2

public F_Relation_mnuEC2(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
Ckeck the new relation a0-b0

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

_testBasicSetFirst

public void _testBasicSetFirst(int tx)
                        throws java.lang.Exception
See §10.3.7.7 of spec : a1.assignB(a3.retrieveB()) => a1.retreiveB().contains("b2") && a1.retreiveB().contains("b3") && a1.retreiveB().contains("b4") && a3.retreiveB().contains("b2") && a3.retreiveB().contains("b3") && a3.retreiveB().contains("b4") &&

testBasicSetFirstTxNo

public void testBasicSetFirstTxNo()
                           throws java.lang.Exception

testBasicSetFirstTxCall

public void testBasicSetFirstTxCall()
                             throws java.lang.Exception

testBasicSetFirstTxCont

public void testBasicSetFirstTxCont()
                             throws java.lang.Exception

testBasicSetFirstTxRb

public void testBasicSetFirstTxRb()
                           throws java.lang.Exception

_testBasicSetSecond

public void _testBasicSetSecond(int tx)
                         throws java.lang.Exception
See § 10.3.7.7 of spec : a1.getB().add(b3) => a1.retreiveB().contains("b1") && a1.retreiveB().contains("b2") && a1.retreiveB().contains("b3") &&

testBasicSetSecondTxNo

public void testBasicSetSecondTxNo()
                            throws java.lang.Exception

testBasicSetSecondTxCall

public void testBasicSetSecondTxCall()
                              throws java.lang.Exception

testBasicSetSecondTxCont

public void testBasicSetSecondTxCont()
                              throws java.lang.Exception

testBasicSetSecondTxRb

public void testBasicSetSecondTxRb()
                            throws java.lang.Exception

_testBasicSetRemove

public void _testBasicSetRemove(int tx)
                         throws java.lang.Exception
See § 10.3.7.7 of spec : a2.getB().remove(b2) => a2.retreiveB().contains("b1") && a2.retreiveB().contains("b3") &&

testBasicSetRemoveTxNo

public void testBasicSetRemoveTxNo()
                            throws java.lang.Exception

testBasicSetRemoveTxCall

public void testBasicSetRemoveTxCall()
                              throws java.lang.Exception

testBasicSetRemoveTxCont

public void testBasicSetRemoveTxCont()
                              throws java.lang.Exception

testBasicSetRemoveTxRb

public void testBasicSetRemoveTxRb()
                            throws java.lang.Exception

_testBasicClear

public void _testBasicClear(int tx)
                     throws java.lang.Exception
Ckeck clear function

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

_testCohRemoveInRel

public void _testCohRemoveInRel(int tx)
                         throws java.lang.Exception
Remove an element in a relation.

testCohRemoveInRelTxNo

public void testCohRemoveInRelTxNo()
                            throws java.lang.Exception

testCohRemoveInRelTxCall

public void testCohRemoveInRelTxCall()
                              throws java.lang.Exception

testCohRemoveInRelTxCont

public void testCohRemoveInRelTxCont()
                              throws java.lang.Exception

testCohRemoveInRelTxRb

public void testCohRemoveInRelTxRb()
                            throws java.lang.Exception

_testCohRemove

public void _testCohRemove(int tx)
                    throws java.lang.Exception
Test of coherence b2.remove() => a1.retrieveB()=null && a2.retrieveB()=null && a3.retrieveB()=null

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
Test of coherence b2.remove() => a1.retrieveB()=null && a2.retrieveB()=null && a3.retrieveB()=null Same as _testCohRemove except that the called remove method is on the bean instead of the home.

testCohBeanRemoveTxNo

public void testCohBeanRemoveTxNo()
                           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)