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

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

public class F_Relation_pkcompEC2
extends A_Relation

For testing many-to-many bidirectional relationships of beans with composite Primary Keys. This test is like F_Relation_mnbEC2 test.

Author:
J. Camilleri, H. Joanin This is an advanced test suite for home interface on entity bean CMP2. Beans used: pkcomp/A1, pkcomp/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_pkcompEC2(java.lang.String name)
           
 
Method Summary
 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 testCohRemoveInRelTxCall()
           
 void testCohRemoveInRelTxCont()
           
 void testCohRemoveInRelTxNo()
           
 void testCohRemoveInRelTxRb()
           
 
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_pkcompEC2

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

_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

suite

public static junit.framework.Test suite()

main

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