org.objectweb.jonas.jtests.clients.transaction
Class F_EntityCMT

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.objectweb.jonas.jtests.util.JTestCase
                    |
                    +--org.objectweb.jonas.jtests.clients.transaction.F_EntityCMT
All Implemented Interfaces:
junit.framework.Test

public class F_EntityCMT
extends JTestCase

Test for Bean Managed Transaction entity beans

Author:
Philippe Durieux

Field Summary
protected static PersonneHome ehome
           
 
Fields inherited from class org.objectweb.jonas.jtests.util.JTestCase
ictx, isInit, jonasName, msgerror, testtorun, utx
 
Constructor Summary
F_EntityCMT(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
          common setUp routine, used for every test.
static junit.framework.Test suite()
           
 void testStateAfterRollBack()
          Test that rollback will not lost old bean state - create bean - make a transaction that change the num and roll it back - check num has not been changed.
 void testStateAfterRollBackNoTx()
          Test that rollback will not lost old bean state - access bean - make a transaction rolled back - check state has not been changed.
 void testStateAfterRollBackTx()
          Test that rollback will not lost old bean state - access bean - make a transaction rolled back - check state has not been changed.
 
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

ehome

protected static PersonneHome ehome
Constructor Detail

F_EntityCMT

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

testStateAfterRollBack

public void testStateAfterRollBack()
                            throws java.lang.Exception
Test that rollback will not lost old bean state - create bean - make a transaction that change the num and roll it back - check num has not been changed.

testStateAfterRollBackNoTx

public void testStateAfterRollBackNoTx()
                                throws java.lang.Exception
Test that rollback will not lost old bean state - access bean - make a transaction rolled back - check state has not been changed.

testStateAfterRollBackTx

public void testStateAfterRollBackTx()
                              throws java.lang.Exception
Test that rollback will not lost old bean state - access bean - make a transaction rolled back - check state has not been changed.

suite

public static junit.framework.Test suite()

main

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