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

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
                                |
                                +--org.objectweb.jonas.jtests.clients.transaction.F_TxAttributeEB
All Implemented Interfaces:
junit.framework.Test

public class F_TxAttributeEB
extends A_TxAttributeEntity

TxAttribute tests on on entity bean


Field Summary
protected static SimpleEHome home
           
 
Fields inherited from class org.objectweb.jonas.jtests.util.JTestCase
ictx, isInit, jonasName, msgerror, testtorun, utx
 
Constructor Summary
F_TxAttributeEB(java.lang.String name)
           
 
Method Summary
 SimpleEHome getHome()
          return SimpleHome, that can be either BMP or CMP bean.
 Simple getSimple(int i)
          Create a bean and return it.
static void main(java.lang.String[] args)
           
protected  void setUp()
          init environment: - load beans - create/init database for entities.
static junit.framework.Test suite()
          This suite is all BMP test cases
 void testFinderMandatory()
          Test Mandatory transactional attributes on finder method the finder method is called outside TX TransactionRequiredException must be received
 void testFinderMandatoryTx()
          Test Mandatory transactional attributes on finder method the finder method is called inside TX
 void testFinderNever()
          Test Never transactional attributes on finder method the finder method is called outside TX
 void testFinderNeverTx()
          Test Never transactional attributes on finder method the finder method is called inside TX
 void testFinderNotSupported()
          Test NotSupported transactional attributes on finder method the finder method is called outside TX
 void testFinderNotSupportedTx()
          Test NotSupported transactional attributes on finder method the finder method is called inside TX
 void testFinderRequired()
          Test required transactional attributes on finder method the finder method is called outside TX
 void testFinderRequiredTx()
          Test Required transactional attributes on finder method the finder method is called inside TX
 void testFinderRequiresNew()
          Test requiresNew transactional attributes on finder method the finder method is called outside TX
 void testFinderRequiresNewTx()
          Test RequiresNew transactional attributes on finder method the finder method is called inside TX
 void testFinderSupports()
          Test supports transactional attributes on finder method the finder method is called outside TX the finder method is called with false that mean that the method must not be associated to a transaction
 void testFinderSupportsTx()
          Test supports transactional attributes on finder method the finder method is called inside TX the finder method is called with true that mean that the method must be associated to a transaction
 
Methods inherited from class org.objectweb.jonas.jtests.clients.transaction.A_TxAttributeEntity
testCreateMandatory, testCreateMandatoryTx, testCreateNever, testCreateNeverTx, testCreateNotSupported, testCreateNotSupportedTx, testCreateRequired, testCreateRequiredTx, testCreateRequiresNew, testCreateRequiresNewTx, testCreateSupports, testCreateSupportsTx, testHomeMandatory, testHomeMandatoryTx, testHomeNever, testHomeNeverTx, testHomeNotSupported, testHomeNotSupportedTx, testHomeNoTx, testHomeRequired, testHomeRequiredTx, testHomeRequiresNew, testHomeRequiresNewTx, testHomeSupports, testHomeSupportsTx
 
Methods inherited from class org.objectweb.jonas.jtests.clients.transaction.A_TxAttribute
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, 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

home

protected static SimpleEHome home
Constructor Detail

F_TxAttributeEB

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

testFinderNotSupported

public void testFinderNotSupported()
                            throws java.lang.Exception
Test NotSupported transactional attributes on finder method the finder method is called outside TX

testFinderNotSupportedTx

public void testFinderNotSupportedTx()
                              throws java.lang.Exception
Test NotSupported transactional attributes on finder method the finder method is called inside TX

testFinderRequired

public void testFinderRequired()
                        throws java.lang.Exception
Test required transactional attributes on finder method the finder method is called outside TX

testFinderRequiredTx

public void testFinderRequiredTx()
                          throws java.lang.Exception
Test Required transactional attributes on finder method the finder method is called inside TX

testFinderSupports

public void testFinderSupports()
                        throws java.lang.Exception
Test supports transactional attributes on finder method the finder method is called outside TX the finder method is called with false that mean that the method must not be associated to a transaction

testFinderSupportsTx

public void testFinderSupportsTx()
                          throws java.lang.Exception
Test supports transactional attributes on finder method the finder method is called inside TX the finder method is called with true that mean that the method must be associated to a transaction

testFinderRequiresNew

public void testFinderRequiresNew()
                           throws java.lang.Exception
Test requiresNew transactional attributes on finder method the finder method is called outside TX

testFinderRequiresNewTx

public void testFinderRequiresNewTx()
                             throws java.lang.Exception
Test RequiresNew transactional attributes on finder method the finder method is called inside TX

testFinderMandatory

public void testFinderMandatory()
                         throws java.lang.Exception
Test Mandatory transactional attributes on finder method the finder method is called outside TX TransactionRequiredException must be received

testFinderMandatoryTx

public void testFinderMandatoryTx()
                           throws java.lang.Exception
Test Mandatory transactional attributes on finder method the finder method is called inside TX

testFinderNever

public void testFinderNever()
                     throws java.lang.Exception
Test Never transactional attributes on finder method the finder method is called outside TX

testFinderNeverTx

public void testFinderNeverTx()
                       throws java.lang.Exception
Test Never transactional attributes on finder method the finder method is called inside TX

getHome

public SimpleEHome getHome()
Description copied from class: A_TxAttributeEntity
return SimpleHome, that can be either BMP or CMP bean.
Overrides:
getHome in class A_TxAttributeEntity

getSimple

public Simple getSimple(int i)
                 throws java.lang.Exception
Create a bean and return it.
Overrides:
getSimple in class A_TxAttribute

setUp

protected void setUp()
init environment: - load beans - create/init database for entities.
Overrides:
setUp in class JTestCase

suite

public static junit.framework.Test suite()
This suite is all BMP test cases

main

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