org.mockejb |
|
Java Source File Name | Type | Comment |
BasicEjbDescriptor.java | Class | Provides the information that MockEJB needs to "deploy" this EJB. |
BasicEjbHome.java | Class | Base class for concrete Home implementations. |
BMPFinderHandler.java | Class | Intercepts the calls to the BMP find methods,
checks if the returned PK (or elements of the pk collection) is in the EntityDatabase,
if not, creates a new entity and calls "ejbLoad", and adds it to the EntityDatabase. |
CMPFindByPrimaryKeyHandler.java | Class | Handles calls to findByPrimaryKey for CMP beans.
Checks if the requested PK is in the EntityDatabase,
if it is, gets the entity from the EntityDatabase and returns it to the client.
Otherwise, proceeds to the next interceptor in the chain. |
DummyCMPBean.java | Class | Dummmy object used to trigger "must be intercepted" exception when
an attempt was made to call finder or ejbSelect that MockEJB does not handle. |
EjbBeanAccess.java | Interface | Proivides access to the bean (instance of the EJB implementation class) and
its context. |
EjbExceptionHandler.java | Class | Performs exception logging and chaining according to the
EJB spec. |
EntityBeanDescriptor.java | Class | Contains entity bean-specific data used for EJB deployment. |
EntityBeanHome.java | Class | Supports invocations of the home methods specific for entity beans, such as
finders and ejbHome. |
EntityBeanSubclass.java | Class | Provides mock subclass of the CMP entity abstract class.
The subclass gets created dynamically using CGLIB.
The behavior is the following: CMP field getters return null if the corresponding
set was not called, otherwise it returns the previously set value. |
EntityDatabase.java | Interface | Provides in-memory entity database implementation suitable for
setting up test mock data.
Entities can be searched only by the primary key.
Users should populate EntityDatabase with the mock entities for their test. |
EntityDatabaseImpl.java | Class | Provides rudimentary in-memory entity database implementation.
Entities can be searched only by the primary key.
Users should populate EntityDatabase with the mock entities for their test. |
GenericHome.java | Interface | You can cast any home to this interface and call its create method.
Create method will create a new bean's instance and set the context.
For session beans, it will call the
parameterless ejbCreate if it exists for. |
MDBDescriptor.java | Class | Provides the information that MockEJB needs to "deploy" MDB.
This includes JNDI names of the connection factory and destination. |
MDBHome.java | Class | |
MDBHomeIface.java | Interface | |
MethodContainer.java | Class | |
MethodNotImplementedException.java | Class | Indicates that the method defined by one of the standard interfaces is
not implemented by the framework. |
MockContainer.java | Class | Provides methods to "deploy" EJBs. |
MockEjbContext.java | Class | Provides implementation of javax.ejb.SessionContext ,
javax.ejb.MessageDrivenContext and javax.ejb.EntityContext
as well as some extra convenience methods. |
MockEjbMetaData.java | Class | |
MockEjbObject.java | Class | Serves as a proxy for all calls to the bean. |
MockEjbSystemException.java | Class | Indicates system error in MockEJB framework. |
MockUser.java | Class | Provides simple implementation of java.security.Principal. |
MustBeInterceptedException.java | Class | Indicates that the method you're trying to call must be intercepted,
MockEJB itself does not support this method. |
OptionalCactusTestCase.java | Class | Runs the test case on the server side under cactus or
standalone on the client side. |
SessionBeanDescriptor.java | Class | Provides Session bean-specific information required by MockContainer
to deploy session EJB.
The only piece if session-bean specific data is isStateful flag. |
SessionBeanHome.java | Class | |
TransactionManager.java | Class | Provides the support for the container-managed transactions
according to EJB spec (chapter 18).
Note that RequiredNew is not fully supported since TransactionManager
does not know how to suspend transactions. |
TransactionPolicy.java | Class | Enumeration of possible values of the transaction attribute (transaction
policy) as per EJB spec. |