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

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.objectweb.jonas.jtests.util.JTestCase
                    |
                    +--org.objectweb.jonas.jtests.clients.entity.A_Isolation
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
F_IsolationEB, F_IsolationEC, F_IsolationEC2

public abstract class A_Isolation
extends JTestCase

test cases common to both suites CMP and BMP.


Fields inherited from class org.objectweb.jonas.jtests.util.JTestCase
ictx, isInit, jonasName, msgerror, testtorun, utx
 
Constructor Summary
A_Isolation(java.lang.String name)
           
 
Method Summary
abstract  SimpleHome getHome()
          return SimpleHome, that can be either BMP or CMP bean.
protected  void setUp()
          common setUp routine, used for every test.
 void testIsolation1()
          Access an instance outside tx and inside tx and verify that state has changed and is ok. pre condition: an element with "pk4" as primary key must exist in the database
 
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
 

Constructor Detail

A_Isolation

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

getHome

public abstract SimpleHome getHome()
return SimpleHome, that can be either BMP or CMP bean.

testIsolation1

public void testIsolation1()
                    throws java.lang.Exception
Access an instance outside tx and inside tx and verify that state has changed and is ok. pre condition: an element with "pk4" as primary key must exist in the database