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

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

public class F_Relation_s2pkcompEC2
extends A_Relation

This is an advanced test suite for home interface on entity bean CMP2. Test about beans with mono-valued relation and with composite Pk with same fields names. Beans used: s2pkcomp/A1, s2pkcomp/A2


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_s2pkcompEC2(java.lang.String name)
           
 
Method Summary
 void _testCohBeanRemoveB(int tx)
          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.
 void _testCohRemoveA(int tx)
          test coherence relation one to one bidirectionnel, A1.remove=>A1removed && B1.retreiveA()==null
static void main(java.lang.String[] args)
           
protected  void setUp()
          common setUp routine, used for every test.
static junit.framework.Test suite()
           
 void testCohBeanRemoveBTxCall()
           
 void testCohBeanRemoveBTxNo()
           
 void testCohBeanRemoveBTxRb()
           
 void testCohRemoveATxCall()
           
 void testCohRemoveATxNo()
           
 void testCohRemoveATxRb()
           
 
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_s2pkcompEC2

public F_Relation_s2pkcompEC2(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

_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

_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)