|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
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 |
protected static SimpleEHome home
Constructor Detail |
public F_TxAttributeEB(java.lang.String name)
Method Detail |
public void testFinderNotSupported() throws java.lang.Exception
public void testFinderNotSupportedTx() throws java.lang.Exception
public void testFinderRequired() throws java.lang.Exception
public void testFinderRequiredTx() throws java.lang.Exception
public void testFinderSupports() throws java.lang.Exception
public void testFinderSupportsTx() throws java.lang.Exception
public void testFinderRequiresNew() throws java.lang.Exception
public void testFinderRequiresNewTx() throws java.lang.Exception
public void testFinderMandatory() throws java.lang.Exception
public void testFinderMandatoryTx() throws java.lang.Exception
public void testFinderNever() throws java.lang.Exception
public void testFinderNeverTx() throws java.lang.Exception
public SimpleEHome getHome()
A_TxAttributeEntity
getHome
in class A_TxAttributeEntity
public Simple getSimple(int i) throws java.lang.Exception
getSimple
in class A_TxAttribute
protected void setUp()
setUp
in class JTestCase
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |