This set of test are all tests common to CMP version 1 and CMP version 2
These are tests about the different cases of the primary key type:
- primary key that maps to a single field in the entity bean class (java.lang.Integer),
- unknown primary key class at the bean development phase,
(defered primary key type specification to the deployment phase).
The afterBegin method notifies a session Bean instance that a new
transaction has started, and that the subsequent business methods on
the instance will be invoked in the context of the transaction.
afterBegin() -
Method in class org.objectweb.jonas.jtests.beans.transacted.SimpleSY
The afterBegin method notifies a session Bean instance that a new
transaction has started, and that the subsequent business methods on
the instance will be invoked in the context of the transaction.
The afterCompletion method notifies a session Bean instance that a
transaction commit protocol has completed, and tells the instance whether
the transaction has been committed or rolled back.
The afterCompletion method notifies a session Bean instance that a
transaction commit protocol has completed, and tells the instance whether
the transaction has been committed or rolled back.
age -
Variable in class org.objectweb.jonas.jtests.beans.inherit.PersonImpl
ahome -
Static variable in class org.objectweb.jonas.jtests.clients.entity.F_VariousPKEC
ahome -
Static variable in class org.objectweb.jonas.jtests.clients.entity.F_Relation_mnuEC2
ahome -
Static variable in class org.objectweb.jonas.jtests.clients.entity.F_VariousPKEC2
ahome -
Static variable in class org.objectweb.jonas.jtests.clients.entity.F_Relation_mnbEC2
Check the validity of the parsing for a given query.So far, the validation
consists in performing a first parsing, counting the nodes of the obtained
lexical tree, creating a new string representation of the query from the
lexical tree, parsing this string again and comparing the number of nodes
of the last tree with the first one.
clean(int) -
Method in class org.objectweb.jonas.jtests.beans.message.SenderSF
Clean all entity beans for this value
clean(int) -
Method in interface org.objectweb.jonas.jtests.beans.message.Sender
Clean all entity beans for this value
clearA() -
Method in class org.objectweb.jonas.jtests.beans.relation.mnb.BEC2
clearA() -
Method in interface org.objectweb.jonas.jtests.beans.relation.mnb.BRemote
It clear the multivalued relation
This method has the transactional attribut TX_SUPPORTS.
clearA() -
Method in interface org.objectweb.jonas.jtests.beans.relation.pkcomp.BRemote
It clear the multivalued relation
This method has the transactional attribut TX_SUPPORTS.
clearA() -
Method in class org.objectweb.jonas.jtests.beans.relation.pkcomp.BEC2
clearA() -
Method in interface org.objectweb.jonas.jtests.beans.relation.s1pkcomp.BRemote
It clear the multivalued relation
This method has the transactional attribut TX_SUPPORTS.
clearA() -
Method in class org.objectweb.jonas.jtests.beans.relation.s1pkcomp.BEC2
clearAInNewTx() -
Method in class org.objectweb.jonas.jtests.beans.relation.mnb.BEC2
clearAInNewTx() -
Method in interface org.objectweb.jonas.jtests.beans.relation.mnb.BRemote
It clear the multivalued relation
This method has the transactional attribut TX_REQUIRES_NEW.
clearAInNewTx() -
Method in interface org.objectweb.jonas.jtests.beans.relation.pkcomp.BRemote
It clear the multivalued relation
This method has the transactional attribut TX_REQUIRES_NEW.
clearAInNewTx() -
Method in class org.objectweb.jonas.jtests.beans.relation.pkcomp.BEC2
clearAInNewTx() -
Method in interface org.objectweb.jonas.jtests.beans.relation.s1pkcomp.BRemote
It clear the multivalued relation
This method has the transactional attribut TX_REQUIRES_NEW.
clearAInNewTx() -
Method in class org.objectweb.jonas.jtests.beans.relation.s1pkcomp.BEC2
clearB() -
Method in interface org.objectweb.jonas.jtests.beans.relation.mnb.ARemote
It clear the multivalued relation
This method has the transactional attribut TX_SUPPORTS.
clearB() -
Method in class org.objectweb.jonas.jtests.beans.relation.mnb.AEC2
clearB() -
Method in class org.objectweb.jonas.jtests.beans.relation.mnu.AEC2
clearB() -
Method in interface org.objectweb.jonas.jtests.beans.relation.mnu.ARemote
It clear the multivalued relation
This method has the transactional attribut TX_SUPPORTS.
clearB() -
Method in class org.objectweb.jonas.jtests.beans.relation.pkcomp.AEC2
clearB() -
Method in interface org.objectweb.jonas.jtests.beans.relation.pkcomp.ARemote
It clear the multivalued relation
This method has the transactional attribut TX_SUPPORTS.
clearB() -
Method in class org.objectweb.jonas.jtests.beans.relation.omb.AEC2
clearB() -
Method in interface org.objectweb.jonas.jtests.beans.relation.omb.ARemote
It clear the multivalued relation
This method has the transactional attribut TX_SUPPORTS.
clearB() -
Method in class org.objectweb.jonas.jtests.beans.relation.omu.AEC2
clearB() -
Method in interface org.objectweb.jonas.jtests.beans.relation.omu.ARemote
It clear the multivalued relation
This method has the transactional attribut TX_SUPPORTS.
clearB() -
Method in interface org.objectweb.jonas.jtests.beans.relation.s1pkcomp.ARemote
It clear the multivalued relation
This method has the transactional attribut TX_SUPPORTS.
clearB() -
Method in class org.objectweb.jonas.jtests.beans.relation.s1pkcomp.AEC2
clearB() -
Method in class org.objectweb.jonas.jtests.beans.relation.s3pkcomp.AEC2
clearB() -
Method in interface org.objectweb.jonas.jtests.beans.relation.s3pkcomp.ARemote
It clear the multivalued relation
This method has the transactional attribut TX_SUPPORTS.
clearBInNewTx() -
Method in interface org.objectweb.jonas.jtests.beans.relation.mnb.ARemote
It clear the multivalued relation
This method has the transactional attribut TX_REQUIRES_NEW.
clearBInNewTx() -
Method in class org.objectweb.jonas.jtests.beans.relation.mnb.AEC2
clearBInNewTx() -
Method in class org.objectweb.jonas.jtests.beans.relation.mnu.AEC2
clearBInNewTx() -
Method in interface org.objectweb.jonas.jtests.beans.relation.mnu.ARemote
It clear the multivalued relation
This method has the transactional attribut TX_REQUIRES_NEW.
clearBInNewTx() -
Method in class org.objectweb.jonas.jtests.beans.relation.pkcomp.AEC2
clearBInNewTx() -
Method in interface org.objectweb.jonas.jtests.beans.relation.pkcomp.ARemote
It clear the multivalued relation
This method has the transactional attribut TX_REQUIRES_NEW.
clearBInNewTx() -
Method in class org.objectweb.jonas.jtests.beans.relation.omb.AEC2
clearBInNewTx() -
Method in interface org.objectweb.jonas.jtests.beans.relation.omb.ARemote
It clear the multivalued relation
This method has the transactional attribut TX_REQUIRES_NEW.
clearBInNewTx() -
Method in class org.objectweb.jonas.jtests.beans.relation.omu.AEC2
clearBInNewTx() -
Method in interface org.objectweb.jonas.jtests.beans.relation.omu.ARemote
It clear the multivalued relation
This method has the transactional attribut TX_REQUIRES_NEW.
clearBInNewTx() -
Method in interface org.objectweb.jonas.jtests.beans.relation.s1pkcomp.ARemote
It clear the multivalued relation
This method has the transactional attribut TX_REQUIRES_NEW.
clearBInNewTx() -
Method in class org.objectweb.jonas.jtests.beans.relation.s1pkcomp.AEC2
clearBInNewTx() -
Method in class org.objectweb.jonas.jtests.beans.relation.s3pkcomp.AEC2
clearBInNewTx() -
Method in interface org.objectweb.jonas.jtests.beans.relation.s3pkcomp.ARemote
It clear the multivalued relation
This method has the transactional attribut TX_REQUIRES_NEW.
this method is common for impl and expl bean
it is used to test exception raised in ejbCreate
with unspecified transactional context (Required attribute)
CAUTION: Do not call ejbCreate inside another ejbCreate (known bug)
This method is common for impl and expl bean
it is used to test exception raised in ejbRemove()
with unspecified transactional context (Required attribute).
ejbRemove() -
Method in class org.objectweb.jonas.jtests.beans.beanexc.AccountEB
ManacEC - class org.objectweb.jonas.stests.manac.ManacEC.
Manac Implementation (with container-managed persistence version 1)
This class extends the similar entity bean with "CMP version 2.x"
and implements the getter and setter methods.
ManacEC() -
Constructor for class org.objectweb.jonas.stests.manac.ManacEC
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
EJB Reference
This test verify that we can look up a Home Object of a bean in the same ejbjar file
via the java:comp/env subcontext using an ejb-reference contains an ejb-link.
EJB Reference
This test verify that we can look up a Home Object of a bean (in the same ejbjar file)
via the java:comp/env subcontext using an ejb-reference with a jonas-ejb-reference.
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.
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 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 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
testIn() -
Method in class org.objectweb.jonas.jtests.clients.entity.F_EjbqlEC2
Findng Customers Living in Warm Climates
SELECT OBJECT(c) FROM jt2_Customer c WHERE c.homeAddress.state IN ('FL','TX','AZ','CA')
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
This test verify we can create a Local session , access to the bean
via its local interface and remove it
It verifies we cannot access to the bean after remove
test accept access to a local method
callAnotherMethod is called with role1 and call DerivedSF.anotheMethod with this role
return false if access to anotheMethod was denied
expected return is true
test reject access to a local method
callAnotherMethod is called with role1 and call DerivedSF.anotheMethod with this role
return false if access to anotheMethod was denied
expected return is true
Test of Mandatory attribute
A business 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
Test of Mandatory attribute
A business method with Mandatory is called inside TX
this method returns if the thread is associated to a transaction
the expected value is true
Finding all city in which the credit card companies that distribute credit cards used by customers
The address information of any credit card companies whose cards are not currently used by customers
won't be includes in the result
SELECT c.creditCard.creditCompany.address.city FROM jt2_Customer As c
Test of Never attribute
A business method with Never is called outside TX
this method returns if the thread is associated to a transaction
the expected value is false
Test of Never attribute
A business 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
Test of NotSupported attribute
A business method with NotSupported is called outside TX
this method returns if the thread is associated to a transaction
the expected value is false
Test of NotSupported attribute
A business method with NotSupported is called inside TX
this method returns if the thread is associated to a transaction
the expected value is false
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
test that EJBHome.removeHandle()
test we can remove a session via its handle
it verifies the bean cannot be accessed after remove and
java.rmi.NoSuchObjectException is raised
testRemoveInsideTransaction Verify that after a remove inside a transaction,
the bean cannot be found anymore
pre condition the testRemoveInsideTransaction must exist
Test remove by PK in a tx rolled back
we modify the bean instance outside tx, then we check that
the bean state has not been changed by the rolled back remove
Test remove in a tx rolled back
we modify the bean instance outside tx, then we check that
the bean state has not been changed by the rolled back remove
Test of Required attribute
A business method with Required is called outside TX
this method returns if the thread is associated to a transaction
the expected value is true
Test of Required attribute
A business method with Required is called inside TX
this method returns if the thread is associated to a transaction
the expected value is true
Test of RequiresNew attribute
A business method with RequiresNew is called outside TX
this method returns if the thread is associated to a transaction
the expected value is true
Test of RequiresNew attribute
A business method with RequiresNew is called inside TX
this method returns if the thread is associated to a transaction
the expected value is true
Test RuntimeException in a container-invoked callback (ejbStore)
Methods runs in the context of the caller's transaction
-> RollbackException should be received by the client on commit.
Test that rollback will not lost old bean state
- create bean
- make a transaction that change the num and roll it back
- check num has not been changed.
Test of Supports attribute
A business method with Supports is called outside TX
this method returns if the thread is associated to a transaction
the expected value is false
Test of Supports attribute
A business method with Supports is called inside TX
this method returns if the thread is associated to a transaction
the expected value is true
Finding Customer having a name exactly matching 'Joe Star' &
Finding Customers having a name like 'Jo S' (no wildcards) &
Finding Customers having a name like 'Jo% S%' (with wildcards)
Finding Customers having a name like 'Jo% S%' and living in MN
SELECT OBJECT(c) FROM jt2_Customer c WHERE c.lastName = ?
Tfolder - class org.objectweb.jonas.jtests.tables.Tfolder.
Tfolder() -
Constructor for class org.objectweb.jonas.jtests.tables.Tfolder
threadError -
Static variable in class org.objectweb.jonas.jtests.clients.distribution.F_Cluster
threadfail -
Static variable in class org.objectweb.jonas.stests.manac.A_manac
threadfail -
Static variable in class org.objectweb.jonas.stests.manac.A_remove
Test of coherence b2.remove() => a1.retrieveB()=null && a2.retrieveB()=null && a3.retrieveB()=null
Same as _testCohRemove except that the called remove method is on the bean
instead of the home.
test coherence relation one to one bidirectionnel,
B1.remove=>B1 removed && A1.retreiveB()==null
Same as _testCohRemove except that the called remove method is on the bean
instead of the home.
Test of coherence a2.remove() => b1.retrieveB()=null && b2.retrieveB()=null && b3.retrieveB()=null
Same as _testCohRemoveA except that the called remove method is on the bean
instead of the home.
test coherence relation one to one bidirectionnel,
Ahome.remove(a1)=>A1removed && B1.retreiveA()==null
Same as _testCohRemoveA except that the called remove method is on the bean
instead of the home.
Test of coherence b2.remove() => a1.retrieveB()=null && a2.retrieveB()=null && a3.retrieveB()=null
Same as _testCohRemoveB except that the called remove method is on the bean
instead of the home.
test coherence relation one to one bidirectionnel,
B1.remove=>B1 removed && A1.retreiveB()==null
Same as _testCohRemoveB except that the called remove method is on the bean
instead of the home.
Test of coherence b0.remove() => a0.retrieveB()=null && a1.retrieveB()=null && a2.retrieveB()=null
Same as _testCohRemove except that the called remove method is on the bean
instead of the home.
test coherence relation one to one bidirectionnel,
B1.remove=>B1 removed && A1.retreiveB()==null
Same as _testCohRemoveB except that the called remove method is on the bean
instead of the home.
test coherence relation one to one bidirectionnel,
A1.assignB(B2) => A1.retreiveB()=B2 && B2.retreiveA()=A1 && B1.retreiveA()=null && A2.retreiveB()=null