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

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.objectweb.jonas.jtests.util.JTestCase
                    |
                    +--org.objectweb.jonas.jtests.clients.transaction.A_TxAttribute
                          |
                          +--org.objectweb.jonas.jtests.clients.transaction.A_TxAttributeEntity
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
F_TxAttributeEB, F_TxAttributeEC, F_TxAttributeEC2

public abstract class A_TxAttributeEntity
extends A_TxAttribute


Fields inherited from class org.objectweb.jonas.jtests.util.JTestCase
ictx, isInit, jonasName, msgerror, testtorun, utx
 
Constructor Summary
A_TxAttributeEntity(java.lang.String name)
           
 
Method Summary
abstract  SimpleEHome getHome()
          return SimpleHome, that can be either BMP or CMP bean.
 void testCreateMandatory()
          Test Mandatory transactional attributes on create method the create method xith required is called outside TX
 void testCreateMandatoryTx()
          Test Mandatory transactional attributes on create method the create method xith required is called inside TX
 void testCreateNever()
          Test Never transactional attributes on create method the create method xith required is called outside TX
 void testCreateNeverTx()
          Test Never transactional attributes on create method the create method xith required is called inside TX
 void testCreateNotSupported()
          Test NotSupported transactional attributes on create method the create method xith required is called outside TX
 void testCreateNotSupportedTx()
          Test NotSupported transactional attributes on create method the create method xith required is called inside TX
 void testCreateRequired()
          Test Required transactional attributes on create method the create method xith required is called outside TX
 void testCreateRequiredTx()
          Test Required transactional attributes on create method the create method xith required is called inside TX
 void testCreateRequiresNew()
          Test RequiresNew transactional attributes on create method the create method xith required is called outside TX
 void testCreateRequiresNewTx()
          Test RequiresNew transactional attributes on create method the create method xith required is called inside TX
 void testCreateSupports()
          Test Supports transactional attributes on create method the create method xith required is called outside TX
 void testCreateSupportsTx()
          Test Supports transactional attributes on create method the create method xith required is called inside TX
 void testHomeMandatory()
          Test of Mandatory attribute A home method with Mandatory is called outside TX this method returns if the thread is associated to a transaction A javax.transaction.TransactionRequiredException must be received
 void testHomeMandatoryTx()
          Test of Mandatory attribute A home method with Mandatory is called inside TX this method returns if the thread is associated to a transaction the expected value is true
 void testHomeNever()
          Test of Never attribute A home method with Never is called outside TX this method returns if the thread is associated to a transaction the expected value is false
 void testHomeNeverTx()
          Test of Never attribute A home method with Mandatory is called inside TX this method returns if the thread is associated to a transaction A java.rmi.RemoteException must be received
 void testHomeNotSupported()
          Test of NotSupported attribute A home method with NotSupported is called outside TX this method returns if the thread is associated to a transaction the expected value is false
 void testHomeNotSupportedTx()
          Test of NotSupported attribute A home method with NotSupported is called inside TX this method returns if the thread is associated to a transaction the expected value is false
 void testHomeNoTx()
          Test the sequence of several calls to home methods with different transactional contexts
 void testHomeRequired()
          Test of Required attribute A home method with Required is called outside TX this method returns if the thread is associated to a transaction the expected value is true
 void testHomeRequiredTx()
          Test of Required attribute A home method with Required is called inside TX this method returns if the thread is associated to a transaction the expected value is true
 void testHomeRequiresNew()
          Test of RequiresNew attribute A home method with RequiresNew is called outside TX this method returns if the thread is associated to a transaction the expected value is true
 void testHomeRequiresNewTx()
          Test of RequiresNew attribute A home method with RequiresNew is called inside TX this method returns if the thread is associated to a transaction the expected value is true
 void testHomeSupports()
          Test of Supports attribute A home method with Supports is called outside TX this method returns if the thread is associated to a transaction the expected value is false
 void testHomeSupportsTx()
          Test of Supports attribute A home method with Supports is called inside TX this method returns if the thread is associated to a transaction the expected value is true
 
Methods inherited from class org.objectweb.jonas.jtests.clients.transaction.A_TxAttribute
getSimple, testMandatory, testMandatoryTx, testNever, testNeverTx, testNotSupported, testNotSupportedTx, testNoTx, testRequired, testRequiredRequiresNew, testRequiredRequiresNew2, testRequiredTx, testRequiresNew, testRequiresNewTx, testSupports, testSupportsTx
 
Methods inherited from class org.objectweb.jonas.jtests.util.JTestCase
debug, getDBEnv, random, setUp, 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_TxAttributeEntity

public A_TxAttributeEntity(java.lang.String name)
Method Detail

getHome

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

testCreateRequired

public void testCreateRequired()
                        throws java.lang.Exception
Test Required transactional attributes on create method the create method xith required is called outside TX

testCreateRequiredTx

public void testCreateRequiredTx()
                          throws java.lang.Exception
Test Required transactional attributes on create method the create method xith required is called inside TX

testCreateNotSupported

public void testCreateNotSupported()
                            throws java.lang.Exception
Test NotSupported transactional attributes on create method the create method xith required is called outside TX

testCreateNotSupportedTx

public void testCreateNotSupportedTx()
                              throws java.lang.Exception
Test NotSupported transactional attributes on create method the create method xith required is called inside TX

testCreateNever

public void testCreateNever()
                     throws java.lang.Exception
Test Never transactional attributes on create method the create method xith required is called outside TX

testCreateNeverTx

public void testCreateNeverTx()
                       throws java.lang.Exception
Test Never transactional attributes on create method the create method xith required is called inside TX

testCreateRequiresNew

public void testCreateRequiresNew()
                           throws java.lang.Exception
Test RequiresNew transactional attributes on create method the create method xith required is called outside TX

testCreateRequiresNewTx

public void testCreateRequiresNewTx()
                             throws java.lang.Exception
Test RequiresNew transactional attributes on create method the create method xith required is called inside TX

testCreateMandatory

public void testCreateMandatory()
                         throws java.lang.Exception
Test Mandatory transactional attributes on create method the create method xith required is called outside TX

testCreateMandatoryTx

public void testCreateMandatoryTx()
                           throws java.lang.Exception
Test Mandatory transactional attributes on create method the create method xith required is called inside TX

testCreateSupports

public void testCreateSupports()
                        throws java.lang.Exception
Test Supports transactional attributes on create method the create method xith required is called outside TX

testCreateSupportsTx

public void testCreateSupportsTx()
                          throws java.lang.Exception
Test Supports transactional attributes on create method the create method xith required is called inside TX

testHomeNotSupported

public void testHomeNotSupported()
                          throws java.lang.Exception
Test of NotSupported attribute A home method with NotSupported is called outside TX this method returns if the thread is associated to a transaction the expected value is false

testHomeRequiresNew

public void testHomeRequiresNew()
                         throws java.lang.Exception
Test of RequiresNew attribute A home method with RequiresNew is called outside TX this method returns if the thread is associated to a transaction the expected value is true

testHomeRequired

public void testHomeRequired()
                      throws java.lang.Exception
Test of Required attribute A home method with Required is called outside TX this method returns if the thread is associated to a transaction the expected value is true

testHomeMandatory

public void testHomeMandatory()
                       throws java.lang.Exception
Test of Mandatory attribute A home method with Mandatory is called outside TX this method returns if the thread is associated to a transaction A javax.transaction.TransactionRequiredException must be received

testHomeNever

public void testHomeNever()
                   throws java.lang.Exception
Test of Never attribute A home method with Never is called outside TX this method returns if the thread is associated to a transaction the expected value is false

testHomeSupports

public void testHomeSupports()
                      throws java.lang.Exception
Test of Supports attribute A home method with Supports is called outside TX this method returns if the thread is associated to a transaction the expected value is false

testHomeNotSupportedTx

public void testHomeNotSupportedTx()
                            throws java.lang.Exception
Test of NotSupported attribute A home method with NotSupported is called inside TX this method returns if the thread is associated to a transaction the expected value is false

testHomeRequiresNewTx

public void testHomeRequiresNewTx()
                           throws java.lang.Exception
Test of RequiresNew attribute A home method with RequiresNew is called inside TX this method returns if the thread is associated to a transaction the expected value is true

testHomeRequiredTx

public void testHomeRequiredTx()
                        throws java.lang.Exception
Test of Required attribute A home method with Required is called inside TX this method returns if the thread is associated to a transaction the expected value is true

testHomeMandatoryTx

public void testHomeMandatoryTx()
                         throws java.lang.Exception
Test of Mandatory attribute A home method with Mandatory is called inside TX this method returns if the thread is associated to a transaction the expected value is true

testHomeNeverTx

public void testHomeNeverTx()
                     throws java.lang.Exception
Test of Never attribute A home method with Mandatory is called inside TX this method returns if the thread is associated to a transaction A java.rmi.RemoteException must be received

testHomeSupportsTx

public void testHomeSupportsTx()
                        throws java.lang.Exception
Test of Supports attribute A home method with Supports is called inside TX this method returns if the thread is associated to a transaction the expected value is true

testHomeNoTx

public void testHomeNoTx()
                  throws java.lang.Exception
Test the sequence of several calls to home methods with different transactional contexts