| |
|
| org.objectweb.jonas.jtests.util.JTestCase org.objectweb.jonas.jtests.clients.entity.A_BasicHomeInterface
All known Subclasses: org.objectweb.jonas.jtests.clients.entity.F_BasicHomeSharedEB, org.objectweb.jonas.jtests.clients.entity.F_BasicHomeInterfaceEB, org.objectweb.jonas.jtests.clients.entity.A_BasicHomeInterfaceEC,
A_BasicHomeInterface | abstract public class A_BasicHomeInterface extends JTestCase (Code) | | test cases common to both suites CMP and BMP.
|
A_BasicHomeInterface | public A_BasicHomeInterface(String name)(Code) | | |
_testLoopBack | public void _testLoopBack() throws Exception(Code) | | test loopback on non reentrant bean outside tx
Invalid this test because loopback with no transaction context
is not clearly specified in EJB spec.
|
getHome | abstract public SimpleHome getHome()(Code) | | return SimpleHome, that can be either BMP or CMP bean.
|
setUp | protected void setUp()(Code) | | init environment:
- load beans
- create/init database for entities.
|
testAccessTwiceTx | public void testAccessTwiceTx() throws Exception(Code) | | test that we can access the instance twice in the same transaction,
even if the bean is non reentrant.
|
testCreateFindUserTx | public void testCreateFindUserTx() throws Exception(Code) | | Verify that we can create an entity and retrieve it by
a finder method inside the same transaction
|
testCreateNewEntity | public void testCreateNewEntity() throws Exception(Code) | | testCreateNewEntity verify that we can create a new entityBean
We create a new entity testCreateNewEntity, 20, 6
the findByTestName("testCreateNewEntity") must pass and the resulting must be equals to 20
pre condition the testCreateNewEntity element must not exist
|
testCreateRolledBack | public void testCreateRolledBack() throws Exception(Code) | | |
testCreateRolledBackPK | public void testCreateRolledBackPK() throws Exception(Code) | | |
testFindAccessTx | public void testFindAccessTx() throws Exception(Code) | | test that we can access the instance twice in the same transaction,
even if the bean is non reentrant.
|
testFindAfterRBR | public void testFindAfterRBR() throws Exception(Code) | | Test that the removed is no more seen after the rollback
|
testFindByPK | public void testFindByPK() throws Exception(Code) | | testFindByPK verify that findByPrimaryKey find an existing entityBean
pre condition: an element with "pk1" as primary key must exist in the database
findByPrimaryKey("testFindByPK") must pass.
|
testFindUnexistingPK | public void testFindUnexistingPK() throws Exception(Code) | | testFindUnexistingPK verify that findByPrimaryKey throw Finder Exception
when the specified entity beab doesn't exist.
pre condition there is no element with "pk999" in the table
findByPrimaryKey("testFindUnexistingPK") must throw Finder Exception
|
testFinderCollection | public void testFinderCollection() throws Exception(Code) | | testFinderCollection verify a finder method that return a Collection
pre condition there are 4 elements with c_numtest =4 (pk4,...,pk7)
findInCollection returns all the beans where c_numtest = 4
this test is equivalent to testcase2 in SimpleTest in finder_col
|
testFinderEnum | public void testFinderEnum() throws Exception(Code) | | testFinderEnum verify a finder method that return a Enumeration
pre condition there are 3 elements with num =4
all of them have a field info equals to 10
|
testFinderEnumObjNotFound | public void testFinderEnumObjNotFound() throws Exception(Code) | | testFinderEnumObjNotFound verify that a finder method that can return a Enumeration
return an empty enumeration where there is no matching bean
pre condition there is no elements with NumTest = 999
|
testHomeRemoveCommitted | public void testHomeRemoveCommitted() throws Exception(Code) | | test remove by PK in transaction
|
testHomeRemoveRolledBack | public void testHomeRemoveRolledBack() throws Exception(Code) | | testHomeRemoveRolledBack verify that we can access to a bean after remove has been rolledback
it is the same that testRemoveRolledBack but with home.remove(pk);
pre condition the testHomeRemoveRolledBack must exist
|
testLoopBackTx | public void testLoopBackTx() throws Exception(Code) | | test loopback on non reentrant bean in same tx
|
testLoopFindByPK | public void testLoopFindByPK() throws Exception(Code) | | test loop on finder method (findByPrimaryKey)
|
testLoopFinder | public void testLoopFinder() throws Exception(Code) | | test loop on other finder method
|
testOtherFinder | public void testOtherFinder() throws Exception(Code) | | testOtherFinder verify that we can use finder method other than findByPrimaryKey
pre condition an element with "pk2" as primary key must exist in the database
findByTestName("testOtherFinder") must pass
|
testRemoveByPKTwice | public void testRemoveByPKTwice() throws Exception(Code) | | test remove by PK twice.
test that a removeByPrimaryKey can be followed by a create of the same entity.
|
testRemoveInTransaction | public void testRemoveInTransaction() throws Exception(Code) | | same test without second tx.
|
testRemoveInsideTransaction | public void testRemoveInsideTransaction() throws Exception(Code) | | testRemoveInsideTransaction Verify that after a remove inside a transaction,
the bean cannot be found anymore
pre condition the pk4 instance must exist.
|
testRemoveRolledBack | public void testRemoveRolledBack() throws Exception(Code) | | testRemoveRolledBack verify that we can access to a bean after remove has been rolledback
pre condition the testRemoveRolledBack must exist
|
testRemoveTwice | public void testRemoveTwice() throws Exception(Code) | | test remove by EJBObject twice.
test that a remove can be followed by a create of the same entity.
|
testRemoveViaEJBHome | public void testRemoveViaEJBHome() throws Exception(Code) | | |
testRemoveViaEJBObject | public void testRemoveViaEJBObject() throws Exception(Code) | | |
|
|
|