- ClassPatternPointcut - Class in org.mockejb.interceptor
-
Tests if the class name of the provided method matches the regexp.
- ClassPatternPointcut(String) - Constructor for class org.mockejb.interceptor.ClassPatternPointcut
-
Creates a new instance of ClassPatternPoincut
- ClassPointcut - Class in org.mockejb.interceptor
-
Tests if the given class matches the class
provided to the constructor of ClassPointcut.
- ClassPointcut(Class) - Constructor for class org.mockejb.interceptor.ClassPointcut
-
Creates a new instance of ClassPoincut
It will not match subclasses.
- ClassPointcut(Class, boolean) - Constructor for class org.mockejb.interceptor.ClassPointcut
-
Creates a new instance of ClassPoincut
- clear() - Method in interface org.mockejb.EntityDatabase
-
- clear() - Method in interface org.mockejb.interceptor.AspectSystem
-
Clears the aspect list
- clear() - Method in class org.mockejb.interceptor.AspectSystemImpl
-
Clears the list of aspects for this AspectSystem
- clear() - Method in class org.mockejb.interceptor.InvocationContext
-
Clears the context properties and resets the interceptor iterator.
- clear() - Method in class org.mockejb.interceptor.InvocationRecorder
-
Clears all currently stored invocations
- clearBody() - Method in class org.mockejb.jms.BytesMessageImpl
-
- clearBody() - Method in class org.mockejb.jms.MessageImpl
-
- clearBody() - Method in class org.mockejb.jms.ObjectMessageImpl
-
- clearBody() - Method in class org.mockejb.jms.StreamMessageImpl
-
- clearBody() - Method in class org.mockejb.jms.TextMessageImpl
-
- clearProperties() - Method in class org.mockejb.jms.MessageImpl
-
- close() - Method in class org.mockejb.jms.MockConsumer
-
- close() - Method in class org.mockejb.jndi.MockContext
-
Does nothing.
- CMPFindByPrimaryKeyHandler - Class in org.mockejb
-
Handles calls to findByPrimaryKey for CMP beans.
- CMPFindByPrimaryKeyHandler(EntityDatabase) - Constructor for class org.mockejb.CMPFindByPrimaryKeyHandler
-
- compare(String, String) - Static method in class org.mockejb.jms.MessageUtility
-
Compares two strings.
- compare(byte[], byte[]) - Static method in class org.mockejb.jms.MessageUtility
-
Compares two byte arrays.
- compare(Message, Message) - Static method in class org.mockejb.jms.MessageUtility
-
Compares two messages.
- compare(BytesMessage, BytesMessage) - Static method in class org.mockejb.jms.MessageUtility
-
Compares two bytes messages.
- compare(MapMessage, MapMessage) - Static method in class org.mockejb.jms.MessageUtility
-
Compares two map messages.
- compare(ObjectMessage, ObjectMessage) - Static method in class org.mockejb.jms.MessageUtility
-
Compares two object messages.
- compare(StreamMessage, StreamMessage) - Static method in class org.mockejb.jms.MessageUtility
-
Compares two stream messages.
- compare(TextMessage, TextMessage) - Static method in class org.mockejb.jms.MessageUtility
-
Compares two text messages.
- composeName(Name, Name) - Method in class org.mockejb.jndi.MockContext
-
Returns composition of prefix
and name
.
- composeName(String, String) - Method in class org.mockejb.jndi.MockContext
-
Composes the name of this context with a name relative to this context.
- copyMessage(Message, boolean) - Static method in class org.mockejb.jms.MessageUtility
-
Copies header, properties and body of msg
to a new
message of the same type.
- create() - Method in class org.mockejb.EntityBeanSubclass
-
Creates the subclass of the abstract entity class using CGLIB
enhancer.
- create(Class, Object) - Static method in class org.mockejb.interceptor.InterceptableProxy
-
- createConnection() - Method in class org.mockejb.jms.QueueConnectionFactoryImpl
-
- createConnection(String, String) - Method in class org.mockejb.jms.QueueConnectionFactoryImpl
-
- createConnection() - Method in class org.mockejb.jms.TopicConnectionFactoryImpl
-
- createConnection(String, String) - Method in class org.mockejb.jms.TopicConnectionFactoryImpl
-
- createMessageBean(MockEjbObject) - Method in class org.mockejb.MockContainer
-
Deprecated.
use deploy instead
- createQueueConnection(String, String) - Method in class org.mockejb.jms.QueueConnectionFactoryImpl
-
- createQueueConnection() - Method in class org.mockejb.jms.QueueConnectionFactoryImpl
-
- createSubcontext(Name) - Method in class org.mockejb.jndi.MockContext
-
Creates subcontext with name name
, relative to this Context.
- createSubcontext(String) - Method in class org.mockejb.jndi.MockContext
-
Creates subcontext with name name
, relative to this Context.
- createTopicConnection(String, String) - Method in class org.mockejb.jms.TopicConnectionFactoryImpl
-
- createTopicConnection() - Method in class org.mockejb.jms.TopicConnectionFactoryImpl
-
- EjbBeanAccess - Interface in org.mockejb
-
Proivides access to the bean (instance of the EJB implementation class) and
its context.
- EjbExceptionHandler - Class in org.mockejb
-
Performs exception logging and chaining according to the
EJB spec.
- EjbExceptionHandler() - Constructor for class org.mockejb.EjbExceptionHandler
-
- EntityBeanDescriptor - Class in org.mockejb
-
Contains entity bean-specific data used for EJB deployment.
- EntityBeanDescriptor(String, Class, Class, Class) - Constructor for class org.mockejb.EntityBeanDescriptor
-
Creates a new instance of the descriptor.
- EntityBeanSubclass - Class in org.mockejb
-
Provides mock subclass of the CMP entity abstract class.
- entityDatabase - Variable in class org.mockejb.BMPFinderHandler
-
- entityDatabase - Variable in class org.mockejb.CMPFindByPrimaryKeyHandler
-
- EntityDatabase - Interface in org.mockejb
-
Provides in-memory entity database implementation suitable for
setting up test mock data.
- equals(Object) - Method in class org.mockejb.BMPFinderHandler
-
This class does not have state, so all instances of this class
are considered equal
- equals(Object) - Method in class org.mockejb.CMPFindByPrimaryKeyHandler
-
This class does not have state, so all instances of this class
are considered equal
- equals(Object) - Method in class org.mockejb.EjbExceptionHandler
-
This class does not have state, so all instances of this class
are considered equal
- equals(Object) - Method in class org.mockejb.interceptor.ClassPatternPointcut
-
Returns true if the given object is of the same type and
it has the same pattern.
- equals(Object) - Method in class org.mockejb.interceptor.ClassPointcut
-
Returns true if the given object is of type ClassPointcut and
it handles the same class and handlesSubclasses flag is set to the
same value
- equals(Object) - Method in class org.mockejb.interceptor.MethodPatternPointcut
-
Returns true if the given object is of the same type and
it has the same pattern.
- equals(Object) - Method in class org.mockejb.interceptor.PointcutPair
-
Returns true if the given object is of the same type and
it has the same pattern.
- equals(Object) - Method in class org.mockejb.MockEjbObject
-
Tests if this object is equals to the given object.
- equals(Object) - Method in class org.mockejb.TransactionManager
-
Returns true if the given object is of the same type and
it has the same transaction policy.
- genericCreate() - Method in interface org.mockejb.GenericHome
-
- GenericHome - Interface in org.mockejb
-
You can cast any home to this interface and call its create method.
- getAspectList() - Method in interface org.mockejb.interceptor.AspectSystem
-
Returns the list of aspects to the client.
- getAspectList() - Method in class org.mockejb.interceptor.AspectSystemImpl
-
- getAspectSystem() - Static method in class org.mockejb.interceptor.AspectSystemFactory
-
If system property "interceptor.aspect.system.thread" set to true,
returns AspectSystem instance which is stored in
a ThreadLocal variable.
- getBean() - Method in class org.mockejb.BasicEjbDescriptor
-
- getBean() - Method in interface org.mockejb.EjbBeanAccess
-
- getBean() - Method in class org.mockejb.MockEjbObject
-
- getBeanClass() - Method in class org.mockejb.BasicEjbDescriptor
-
- getBodyLength() - Method in class org.mockejb.jms.BytesMessageImpl
-
Returns body length.
- getBoolean(String) - Method in class org.mockejb.jms.MapMessageImpl
-
- getBooleanProperty(String) - Method in class org.mockejb.jms.MessageImpl
-
- getByte(String) - Method in class org.mockejb.jms.MapMessageImpl
-
- getByteProperty(String) - Method in class org.mockejb.jms.MessageImpl
-
- getBytes(String) - Method in class org.mockejb.jms.MapMessageImpl
-
- getCallerIdentity() - Method in class org.mockejb.MockEjbContext
-
This method is not supported
- getCallerPrincipal() - Method in class org.mockejb.MockEjbContext
-
Returns the principal that was logged in using
MockContainer.login.
- getCause() - Method in exception org.mockejb.interceptor.AspectException
-
Returns the cause of this throwable or null if the cause is nonexistent
or unknown.
- getCause() - Method in exception org.mockejb.MockEjbSystemException
-
Returns the cause of this throwable or null if the cause is nonexistent
or unknown.
- getChar(String) - Method in class org.mockejb.jms.MapMessageImpl
-
- getConnectionFactoryJndiName() - Method in class org.mockejb.MDBDescriptor
-
- getContext(String) - Method in class org.mockejb.interceptor.InterceptorInvoker
-
Returns the context associated with the provided key
or null if the key is not found.
- getDestinationJndiName() - Method in class org.mockejb.MDBDescriptor
-
- getDouble(String) - Method in class org.mockejb.jms.MapMessageImpl
-
- getDoubleProperty(String) - Method in class org.mockejb.jms.MessageImpl
-
- getEjbContext() - Method in interface org.mockejb.EjbBeanAccess
-
Returns MockEjbContext of the bean.
- getEjbContext() - Method in class org.mockejb.MockEjbObject
-
Returns MockEjbContext
object for the bean backed by this
MockEjbObject.
- getEJBHome() - Method in class org.mockejb.MockEjbContext
-
- getEJBHome() - Method in class org.mockejb.MockEjbMetaData
-
- getEJBHome() - Method in class org.mockejb.MockEjbObject
-
Obtains the enterprise Bean's home interface.
- getEJBLocalHome() - Method in class org.mockejb.MockEjbContext
-
- getEJBLocalHome() - Method in class org.mockejb.MockEjbObject
-
Obtains the enterprise Bean's local home interface.
- getEJBLocalObject() - Method in class org.mockejb.MockEjbContext
-
Obtains a reference to the EJB local object that is currently associated with the instance.
- getEJBObject() - Method in class org.mockejb.MockEjbContext
-
Obtains a reference to the EJB object that is currently associated with the instance.
- getEntityDatabase() - Method in class org.mockejb.MockContainer
-
Returns an instance of the EntityDatabase that will be used by the
system interceptors (Finder Handlers) used by this instance of the container.
- getEnvironment() - Method in class org.mockejb.jndi.MockContext
-
Not implemented
- getEnvironment() - Method in class org.mockejb.MockEjbContext
-
Always returns empty Properties object.
- getFloat(String) - Method in class org.mockejb.jms.MapMessageImpl
-
- getFloatProperty(String) - Method in class org.mockejb.jms.MessageImpl
-
- getHandle() - Method in class org.mockejb.MockEjbObject
-
This method is not supported.
- getHomeClass() - Method in class org.mockejb.BasicEjbDescriptor
-
- getHomeInterfaceClass() - Method in class org.mockejb.MockEjbMetaData
-
- getIfaceClass() - Method in class org.mockejb.BasicEjbDescriptor
-
- getInitialContext(Hashtable) - Method in class org.mockejb.jndi.MockContextFactory
-
Singleton for initial context.
- getInt(String) - Method in class org.mockejb.jms.MapMessageImpl
-
- getInterceptedMethod() - Method in class org.mockejb.interceptor.InvocationContext
-
Deprecated.
Use getProxyMethod instead
- getInterceptedObject() - Method in class org.mockejb.interceptor.InvocationContext
-
Deprecated.
Use getProxyObject instead
- getInterceptorIterator() - Method in class org.mockejb.interceptor.InvocationContext
-
Returns the iterator currently in use to traverse the
interceptor list.
- getInterceptorList() - Method in class org.mockejb.interceptor.InvocationContext
-
- getIntProperty(String) - Method in class org.mockejb.jms.MessageImpl
-
- getJMSCorrelationID() - Method in class org.mockejb.jms.MessageImpl
-
- getJMSCorrelationIDAsBytes() - Method in class org.mockejb.jms.MessageImpl
-
Not supported.
- getJMSDeliveryMode() - Method in class org.mockejb.jms.MessageImpl
-
- getJMSDestination() - Method in class org.mockejb.jms.MessageImpl
-
- getJMSExpiration() - Method in class org.mockejb.jms.MessageImpl
-
- getJMSMessageID() - Method in class org.mockejb.jms.MessageImpl
-
- getJMSPriority() - Method in class org.mockejb.jms.MessageImpl
-
- getJMSRedelivered() - Method in class org.mockejb.jms.MessageImpl
-
Always returns false
- getJMSReplyTo() - Method in class org.mockejb.jms.MessageImpl
-
- getJMSTimestamp() - Method in class org.mockejb.jms.MessageImpl
-
- getJMSType() - Method in class org.mockejb.jms.MessageImpl
-
- getJndiName() - Method in class org.mockejb.BasicEjbDescriptor
-
- getLong(String) - Method in class org.mockejb.jms.MapMessageImpl
-
- getLongProperty(String) - Method in class org.mockejb.jms.MessageImpl
-
- getMapNames() - Method in class org.mockejb.jms.MapMessageImpl
-
- getMessageContext() - Method in class org.mockejb.MockEjbContext
-
- getMessageListener() - Method in class org.mockejb.jms.MockConsumer
-
- getMessageSelector() - Method in class org.mockejb.jms.MockConsumer
-
- getMethodInvocationList() - Method in class org.mockejb.interceptor.InvocationRecorder
-
Returns the list of all invocations that happened since the recorder
was added.
- getName() - Method in class org.mockejb.MockUser
-
- getNameInNamespace() - Method in class org.mockejb.jndi.MockContext
-
Not implemented
- getNameParser(Name) - Method in class org.mockejb.jndi.MockContext
-
Retrieves name parser used to parse context with name name
.
- getNameParser(String) - Method in class org.mockejb.jndi.MockContext
-
Retrieves name parser used to parse context with name name
.
- getNoLocal() - Method in class org.mockejb.jms.TopicSubscriberImpl
-
- getObject(String) - Method in class org.mockejb.jms.MapMessageImpl
-
- getObject() - Method in class org.mockejb.jms.ObjectMessageImpl
-
- getObjectInstance(Object, Name, Context, Hashtable) - Method in class org.mockejb.jndi.java.javaURLContextFactory
-
- getObjectProperty(String) - Method in class org.mockejb.jms.MessageImpl
-
- getOptionalPropertyValue(String) - Method in class org.mockejb.interceptor.InvocationContext
-
Returns the context property value associated with the provided key
or null if the key is not found
- getParamVals() - Method in class org.mockejb.interceptor.InvocationContext
-
- getPointcut() - Method in class org.mockejb.BMPFinderHandler
-
- getPointcut() - Method in class org.mockejb.CMPFindByPrimaryKeyHandler
-
- getPointcut() - Method in class org.mockejb.EjbExceptionHandler
-
Intercepts all EJB methods.
- getPointcut() - Method in interface org.mockejb.interceptor.Aspect
-
- getPolicy() - Method in class org.mockejb.TransactionManager
-
Returns the currently set transaction policy.
- getPrimaryKey() - Method in class org.mockejb.MockEjbContext
-
Returns the primary key for entity beans.
- getPrimaryKey() - Method in class org.mockejb.MockEjbObject
-
- getPrimaryKeyClass() - Method in class org.mockejb.MockEjbMetaData
-
Currently this method always returns null
- getPropertyNames() - Method in class org.mockejb.jms.MessageImpl
-
- getPropertyValue(String) - Method in class org.mockejb.interceptor.InvocationContext
-
Returns the custome context's property value associated with the provided key
or throws IllegalStateException if the key is not found
- getProxyMethod() - Method in class org.mockejb.interceptor.InvocationContext
-
Returns the proxy method, the method that was called on the proxy.
- getProxyObject() - Method in class org.mockejb.interceptor.InvocationContext
-
Returns the proxy object.
- getQueue() - Method in class org.mockejb.jms.QueueReceiverImpl
-
- getQueueName() - Method in class org.mockejb.jms.MockQueue
-
- getRemoteInterfaceClass() - Method in class org.mockejb.MockEjbMetaData
-
- getReturnObject() - Method in class org.mockejb.interceptor.InvocationContext
-
Returns the return value of the invocation.
- getRollbackOnly() - Method in class org.mockejb.MockEjbContext
-
- getShort(String) - Method in class org.mockejb.jms.MapMessageImpl
-
- getShortProperty(String) - Method in class org.mockejb.jms.MessageImpl
-
- getString(String) - Method in class org.mockejb.jms.MapMessageImpl
-
- getStringProperty(String) - Method in class org.mockejb.jms.MessageImpl
-
- getTargetMethod() - Method in class org.mockejb.interceptor.InvocationContext
-
Returns the target method of the invocation.
- getTargetObject() - Method in class org.mockejb.interceptor.InvocationContext
-
Returns the target object of the invocation.
- getText() - Method in class org.mockejb.jms.TextMessageImpl
-
- getThrownThrowable() - Method in class org.mockejb.interceptor.InvocationContext
-
Returns the throwable thrown by the target method or by one of the
interceptors.
- getTimerService() - Method in class org.mockejb.MockEjbContext
-
- getTopic() - Method in class org.mockejb.jms.TopicSubscriberImpl
-
- getTopicName() - Method in class org.mockejb.jms.MockTopic
-
Returns topic name.
- getUser() - Static method in class org.mockejb.MockContainer
-
Returns the user that was passed to the
MockContainer.login method.
- getUserTransaction() - Method in class org.mockejb.MockEjbContext
-
- getUserTransaction() - Static method in class org.mockejb.TransactionManager
-
Returns UserTransaction object.
- intercept(InvocationContext) - Method in class org.mockejb.BMPFinderHandler
-
Intercepts and handles finders.
- intercept(InvocationContext) - Method in class org.mockejb.CMPFindByPrimaryKeyHandler
-
- intercept(InvocationContext) - Method in class org.mockejb.EjbExceptionHandler
-
Performs exception translation according to the ejb spec rules.
- intercept(Object, Method, Object[], MethodProxy) - Method in class org.mockejb.EntityBeanSubclass
-
- intercept(Object, Method, Object[], MethodProxy) - Method in class org.mockejb.interceptor.InterceptableProxy
-
- intercept(InvocationContext) - Method in interface org.mockejb.interceptor.Interceptor
-
Performs pre and post invocation actions for the target object call.
- intercept(InvocationContext) - Method in class org.mockejb.interceptor.InterceptorInvoker.CglibMethodInvoker
-
- intercept(InvocationContext) - Method in class org.mockejb.interceptor.InvocationRecorder
-
- intercept(InvocationContext) - Method in class org.mockejb.TransactionManager
-
Begins, commits and rolls back the transaction according to the currently
set policy and EJB spec.
- InterceptableProxy - Class in org.mockejb.interceptor
-
Creates dynamic proxy and acts as an InvocationHandler for
this proxy.
- Interceptor - Interface in org.mockejb.interceptor
-
Interceptors intercept calls to an object to perform some actions, such as logging,
transaction management and so on.
- InterceptorInvoker - Class in org.mockejb.interceptor
-
Requests the interceptors from the AspectSystem and
initiates the call to the interceptor chain.
- InterceptorInvoker() - Constructor for class org.mockejb.interceptor.InterceptorInvoker
-
- InterceptorInvoker.CglibMethodInvoker - Class in org.mockejb.interceptor
-
Calls the object's method using Cglib.
- InterceptorInvoker.CglibMethodInvoker() - Constructor for class org.mockejb.interceptor.InterceptorInvoker.CglibMethodInvoker
-
- InvocationContext - Class in org.mockejb.interceptor
-
Performs the invocation of interceptors in their order in the
interceptor list.
- InvocationContext(List, Object, Method, Object, Method, Object[]) - Constructor for class org.mockejb.interceptor.InvocationContext
-
Creates a new instance of the InvocationContext.
- InvocationContext(List, Object, Method, Object, Method, Object[], Map) - Constructor for class org.mockejb.interceptor.InvocationContext
-
Creates a new instance of the InvocationContext.
- InvocationRecorder - Class in org.mockejb.interceptor
-
Stores the information about all calls to the target object
in the list.
- InvocationRecorder() - Constructor for class org.mockejb.interceptor.InvocationRecorder
-
- invoke(Object, Method, Object, Method, Object[]) - Method in class org.mockejb.interceptor.InterceptorInvoker
-
Calls AspectSystem to find the interceptors for the given invokedMethod and
targetMethod, creates the
invocationContext and proceeds to calling the first interceptor.
- invoke(Object, Method, Object[]) - Method in class org.mockejb.MockEjbObject
-
Invokes the target bean's method by delegating to the InvocationContext
which calls interceptors and then the bean itself.
- invokeEjbSelect(Object, Method, Object[]) - Method in class org.mockejb.EntityBeanSubclass
-
- invokeMethod(Object, Method, Object[]) - Method in class org.mockejb.interceptor.InvocationContext
-
Calls the object's method using reflection.
- isAlreadyBound() - Method in class org.mockejb.MDBDescriptor
-
- isCactusMode() - Method in class org.mockejb.OptionalCactusTestCase
-
Tests if the test should run in Cactus mode.
- isCallerInRole(Identity) - Method in class org.mockejb.MockEjbContext
-
This method is not supported
- isCallerInRole(String) - Method in class org.mockejb.MockEjbContext
-
- isCMP() - Method in class org.mockejb.EntityBeanDescriptor
-
Returns true if this descriptor is for CMP entity bean,
i.e., abstract bean class was passed to the constructor
- isIdentical(Object) - Method in class org.mockejb.MockEjbObject
-
Test if a given object is identical to the invoked object.
- isRemote() - Method in class org.mockejb.MockEjbContext
-
Tests if the business interface for this context's bean is remote interface
meaning that it extends EJBObject
.
- isRunningOnServer() - Method in class org.mockejb.OptionalCactusTestCase
-
Tests if the test is being executed on the app server.
- isSession() - Method in class org.mockejb.MockEjbMetaData
-
Checks if this bean is ths session bean.
- isStateful() - Method in class org.mockejb.SessionBeanDescriptor
-
Returns true if this bean is the stateful bean.
- isStatelessSession() - Method in class org.mockejb.MockEjbMetaData
-
- isSystemException(Throwable) - Static method in class org.mockejb.MockContainer
-
Tests if the given throwable is the system exception in terms of the container.
- isTopic() - Method in class org.mockejb.MDBDescriptor
-
- itemExists(String) - Method in class org.mockejb.jms.MapMessageImpl
-
- MANDATORY - Static variable in class org.mockejb.TransactionPolicy
-
- MapMessageImpl - Class in org.mockejb.jms
-
MapMessage
implementation.
- MapMessageImpl() - Constructor for class org.mockejb.jms.MapMessageImpl
-
Creates empty MapMessageImpl
- MapMessageImpl(MapMessage) - Constructor for class org.mockejb.jms.MapMessageImpl
-
Creates MapMessageImpl
and copies its header, properties and
body from msg
- matchesJointpoint(Method) - Method in class org.mockejb.interceptor.ClassPatternPointcut
-
Tests if the fully qualified class name of the given method
- matchesJointpoint(Method) - Method in class org.mockejb.interceptor.ClassPointcut
-
Tests if the class of the provided method is the same with the
the class provided to the constructor of this pointcut.
- matchesJointpoint(Method) - Method in class org.mockejb.interceptor.MethodPatternPointcut
-
Tests if the string representation of the given method
matches the pattern.
- matchesJointpoint(Method) - Method in interface org.mockejb.interceptor.Pointcut
-
Tests if the provided jointpoint represented by the intercepted object (object being called)
and the method matches this pointcut.
- matchesJointpoint(Method) - Method in class org.mockejb.interceptor.PointcutPair
-
Tests if both poincuts match
- MDBDescriptor - Class in org.mockejb
-
Provides the information that MockEJB needs to "deploy" MDB.
- MDBDescriptor(String, String, Object) - Constructor for class org.mockejb.MDBDescriptor
-
Creates a new instance of the descriptor.
- MessageImpl - Class in org.mockejb.jms
-
Message
implementation.
- MessageImpl() - Constructor for class org.mockejb.jms.MessageImpl
-
Constructs empty message.
- MessageImpl(Message) - Constructor for class org.mockejb.jms.MessageImpl
-
Constructs new MessageImpl
by copying all
header fields and properties from the specified message msg
- MessageUtility - Class in org.mockejb.jms
-
Collection of utility methods.
- MethodNotImplementedException - Exception in org.mockejb
-
Indicates that the method defined by one of the standard interfaces is
not implemented by the framework.
- MethodNotImplementedException(String, String) - Constructor for exception org.mockejb.MethodNotImplementedException
-
- MethodPatternPointcut - Class in org.mockejb.interceptor
-
Tests if the string representation of the given method
matches the regexp.
- MethodPatternPointcut(String) - Constructor for class org.mockejb.interceptor.MethodPatternPointcut
-
Creates a new instance of MethodPatternPoincut
- MockConsumer - Class in org.mockejb.jms
-
- MockContainer - Class in org.mockejb
-
Provides methods to "deploy" EJBs.
- MockContainer(Context) - Constructor for class org.mockejb.MockContainer
-
Creates a new instance of the MockContainer for
the given context, deletes all aspects from the AspectSystem and adds the system interceptors, such as
ExceptionHandler.
- MockContext - Class in org.mockejb.jndi
-
Provides implementation of javax.naming.Context
interface for
hierarchical in memory single-namespace naming system.
- MockContext(Context) - Constructor for class org.mockejb.jndi.MockContext
-
Creates a new instance of the context.
- MockContextFactory - Class in org.mockejb.jndi
-
- MockContextFactory() - Constructor for class org.mockejb.jndi.MockContextFactory
-
- MockContextTest - Class in org.mockejb.jndi
-
Tests all basic methods of MockContext.
- MockContextTest(String) - Constructor for class org.mockejb.jndi.MockContextTest
-
- MockEjbContext - Class in org.mockejb
-
Provides implementation of javax.ejb.SessionContext
,
javax.ejb.MessageDrivenContext
and javax.ejb.EntityContext
as well as some extra convenience methods.
- MockEjbMetaData - Class in org.mockejb
-
Provides the implementation of javax.ejb.EJBMetaData
- MockEjbObject - Class in org.mockejb
-
Serves as a proxy for all calls to the bean.
- MockEjbSystemException - Exception in org.mockejb
-
Indicates system error in MockEJB framework.
- MockEjbSystemException(String, Throwable) - Constructor for exception org.mockejb.MockEjbSystemException
-
Creates a new instance of MockEjbSystemException
.
- MockEjbSystemException(String) - Constructor for exception org.mockejb.MockEjbSystemException
-
- MockEjbSystemException(Throwable) - Constructor for exception org.mockejb.MockEjbSystemException
-
- MockQueue - Class in org.mockejb.jms
-
Queue
implementation.
- MockQueue(String) - Constructor for class org.mockejb.jms.MockQueue
-
Creates MockQueue
with the specified name
name
- MockTopic - Class in org.mockejb.jms
-
Topic
implementation.
- MockTopic(String) - Constructor for class org.mockejb.jms.MockTopic
-
Creates MockTopic
with the specified name
name
- MockUser - Class in org.mockejb
-
Provides simple implementation of java.security.Principal.
- MockUser(String) - Constructor for class org.mockejb.MockUser
-
- MockUser(String, String) - Constructor for class org.mockejb.MockUser
-
- MockUser(String, String[]) - Constructor for class org.mockejb.MockUser
-
- MustBeInterceptedException - Exception in org.mockejb
-
Indicates that the method you're trying to call must be intercepted,
MockEJB itself does not support this method.
- MustBeInterceptedException(Method) - Constructor for exception org.mockejb.MustBeInterceptedException
-
- MustBeInterceptedException() - Constructor for exception org.mockejb.MustBeInterceptedException
-
- SessionBeanDescriptor - Class in org.mockejb
-
Provides Session bean-specific information required by MockContainer
to deploy session EJB.
- SessionBeanDescriptor(String, Class, Class, Class) - Constructor for class org.mockejb.SessionBeanDescriptor
-
Creates a new instance of the descriptor.
- SessionBeanDescriptor(String, Class, Class, Object) - Constructor for class org.mockejb.SessionBeanDescriptor
-
Creates a new instance of the descriptor.
- setAsInitial() - Static method in class org.mockejb.jndi.MockContextFactory
-
Sets the MockContextFactory
as the initial context factory.
- setBoolean(String, boolean) - Method in class org.mockejb.jms.MapMessageImpl
-
- setBooleanProperty(String, boolean) - Method in class org.mockejb.jms.MessageImpl
-
- setByte(String, byte) - Method in class org.mockejb.jms.MapMessageImpl
-
- setByteProperty(String, byte) - Method in class org.mockejb.jms.MessageImpl
-
- setBytes(String, byte[]) - Method in class org.mockejb.jms.MapMessageImpl
-
- setBytes(String, byte[], int, int) - Method in class org.mockejb.jms.MapMessageImpl
-
- setChar(String, char) - Method in class org.mockejb.jms.MapMessageImpl
-
- setContext(String, Object) - Method in class org.mockejb.interceptor.InterceptorInvoker
-
Sets the custom context.
- setContext(String, Object) - Method in class org.mockejb.interceptor.InvocationContext
-
Adds the invocation context property.
- setDelegateContext(Context) - Static method in class org.mockejb.jndi.MockContextFactory
-
Sets the delegate context.
- setDelegateEnvironment(Hashtable) - Static method in class org.mockejb.jndi.MockContextFactory
-
Sets the environment of the delegate JNDI context.
- setDouble(String, double) - Method in class org.mockejb.jms.MapMessageImpl
-
- setDoubleProperty(String, double) - Method in class org.mockejb.jms.MessageImpl
-
- setFloat(String, float) - Method in class org.mockejb.jms.MapMessageImpl
-
- setFloatProperty(String, float) - Method in class org.mockejb.jms.MessageImpl
-
- setInt(String, int) - Method in class org.mockejb.jms.MapMessageImpl
-
- setInterceptorList(List) - Method in class org.mockejb.interceptor.InvocationContext
-
Sets the list of interceptors
- setIntProperty(String, int) - Method in class org.mockejb.jms.MessageImpl
-
- setIsAlreadyBound(boolean) - Method in class org.mockejb.MDBDescriptor
-
If set to True, MockEJB will assume that the connection factory and
desination already exist and bound in JNDI.
- setIsTopic(boolean) - Method in class org.mockejb.MDBDescriptor
-
- setJMSCorrelationID(String) - Method in class org.mockejb.jms.MessageImpl
-
- setJMSCorrelationIDAsBytes(byte[]) - Method in class org.mockejb.jms.MessageImpl
-
Not supported.
- setJMSDeliveryMode(int) - Method in class org.mockejb.jms.MessageImpl
-
- setJMSDestination(Destination) - Method in class org.mockejb.jms.MessageImpl
-
- setJMSExpiration(long) - Method in class org.mockejb.jms.MessageImpl
-
- setJMSMessageID(String) - Method in class org.mockejb.jms.MessageImpl
-
- setJMSPriority(int) - Method in class org.mockejb.jms.MessageImpl
-
- setJMSRedelivered(boolean) - Method in class org.mockejb.jms.MessageImpl
-
Does nothing.
- setJMSReplyTo(Destination) - Method in class org.mockejb.jms.MessageImpl
-
- setJMSTimestamp(long) - Method in class org.mockejb.jms.MessageImpl
-
- setJMSType(String) - Method in class org.mockejb.jms.MessageImpl
-
- setLong(String, long) - Method in class org.mockejb.jms.MapMessageImpl
-
- setLongProperty(String, long) - Method in class org.mockejb.jms.MessageImpl
-
- setMessageListener(MessageListener) - Method in class org.mockejb.jms.MockConsumer
-
- setObject(String, Object) - Method in class org.mockejb.jms.MapMessageImpl
-
- setObject(Serializable) - Method in class org.mockejb.jms.ObjectMessageImpl
-
- setObjectProperty(String, Object) - Method in class org.mockejb.jms.MessageImpl
-
- setPolicy(TransactionPolicy) - Method in class org.mockejb.TransactionManager
-
Sets the transaction policy.
- setPrimaryKey(Object) - Method in class org.mockejb.MockEjbContext
-
- setPropertiesNotWriteable() - Method in class org.mockejb.jms.MessageImpl
-
- setReturnObject(Object) - Method in class org.mockejb.interceptor.InvocationContext
-
Sets the return value of the invocation.
- setRole(String) - Method in class org.mockejb.MockUser
-
Sets the role that this user has meaning that
this user only has one role
- setRoles(String[]) - Method in class org.mockejb.MockUser
-
Sets the roles that this user has
- setRollbackOnly() - Method in class org.mockejb.MockEjbContext
-
- setShort(String, short) - Method in class org.mockejb.jms.MapMessageImpl
-
- setShortProperty(String, short) - Method in class org.mockejb.jms.MessageImpl
-
- setStateful(boolean) - Method in class org.mockejb.SessionBeanDescriptor
-
- setString(String, String) - Method in class org.mockejb.jms.MapMessageImpl
-
- setStringProperty(String, String) - Method in class org.mockejb.jms.MessageImpl
-
- setText(String) - Method in class org.mockejb.jms.TextMessageImpl
-
- setThrownThrowable(Throwable) - Method in class org.mockejb.interceptor.InvocationContext
-
Sets the throwable thrown by the invoked method
- setTransactionPolicy(TransactionPolicy) - Method in class org.mockejb.MockEjbObject
-
Deprecated.
use TransactionManager with the AspectSystem to set transaction policies
- setUp() - Method in class org.mockejb.jndi.MockContextTest
-
- setupDefaultInterceptors() - Method in class org.mockejb.MockContainer
-
Add the interceptors that should always be present to
the AspectSystem.
- setUserTransaction(UserTransaction) - Method in class org.mockejb.TransactionManager
-
Sets the shared instance of UserTransaction that will be used by MockEJB.
- StreamMessageImpl - Class in org.mockejb.jms
-
StreamMessage
implementation.
- StreamMessageImpl() - Constructor for class org.mockejb.jms.StreamMessageImpl
-
Creates empty StreamMessageImpl
.
- StreamMessageImpl(StreamMessage) - Constructor for class org.mockejb.jms.StreamMessageImpl
-
Creates new StreamMessageImpl
initialized with
header, properties and body from msg
.
- SUPPORTS - Static variable in class org.mockejb.TransactionPolicy
-
- tearDown() - Method in class org.mockejb.jndi.MockContextTest
-
- testBindLookup() - Method in class org.mockejb.jndi.MockContextTest
-
Tests ability to bind name to object and inability to bind
duplicate names.
- testCompositeNameWithLeadingTrailingEmptyComponents() - Method in class org.mockejb.jndi.MockContextTest
-
- testDelegateContext() - Method in class org.mockejb.jndi.MockContextTest
-
Tests that delegate context is
invoked when MockContext does not find the name
- testGetCompositeName() - Method in class org.mockejb.jndi.MockContextTest
-
Tests "getCompositeName" method
- testListBindings() - Method in class org.mockejb.jndi.MockContextTest
-
Tests ability to list bindings for a context - specified by
name through object reference.
- testLookup() - Method in class org.mockejb.jndi.MockContextTest
-
- testSubcontextCreationOfDuplicates() - Method in class org.mockejb.jndi.MockContextTest
-
Tests inability to create duplicate subcontexts.
- testSubcontextDestruction() - Method in class org.mockejb.jndi.MockContextTest
-
Tests ability to destroy empty subcontexts.
- testSubcontextInvokingMethodsOnDestroyedContext() - Method in class org.mockejb.jndi.MockContextTest
-
Tests inability to invoke methods on destroyed subcontexts.
- testSubcontextNonEmptyDestruction() - Method in class org.mockejb.jndi.MockContextTest
-
Tests inability to destroy non empty subcontexts.
- testTwoSeparatorNames() - Method in class org.mockejb.jndi.MockContextTest
-
Tests substitution of '.' with '/' when parsing string names.
- testUnbind() - Method in class org.mockejb.jndi.MockContextTest
-
Tests ability to unbind names.
- TextMessageImpl - Class in org.mockejb.jms
-
TextMessage
implementation.
- TextMessageImpl(TextMessage) - Constructor for class org.mockejb.jms.TextMessageImpl
-
Creates new TextMessageImpl
initialized
with the text from msg
- TextMessageImpl() - Constructor for class org.mockejb.jms.TextMessageImpl
-
Creates empty TextMessage
- TextMessageImpl(String) - Constructor for class org.mockejb.jms.TextMessageImpl
-
Creates new TextMessageImpl
initialized with
text
- THREAD_LOCAL_ASPECT_SYSTEM - Static variable in class org.mockejb.interceptor.AspectSystemFactory
-
- TopicConnectionFactoryImpl - Class in org.mockejb.jms
-
TopicConnectionFactory
implementation.
- TopicConnectionFactoryImpl() - Constructor for class org.mockejb.jms.TopicConnectionFactoryImpl
-
- TopicSubscriberImpl - Class in org.mockejb.jms
-
- TopicSubscriberImpl(MockSession, MockTopic) - Constructor for class org.mockejb.jms.TopicSubscriberImpl
-
Creates topic subscriber for the specified session and topic.
- toString() - Method in class org.mockejb.interceptor.InvocationContext
-
- toString() - Method in class org.mockejb.interceptor.InvocationRecorder
-
- toString() - Method in class org.mockejb.MockEjbObject
-
Provides string representation of this MockEjbObject
and
the its bean implementation object.
- toString() - Method in class org.mockejb.MockUser
-
- toString() - Method in class org.mockejb.TransactionPolicy
-
- TransactionManager - Class in org.mockejb
-
Provides the support for the container-managed transactions
according to EJB spec (chapter 18).
- TransactionManager(TransactionPolicy) - Constructor for class org.mockejb.TransactionManager
-
Creates a new instance of the TransactionManager
with the
given policy.
- TransactionManager() - Constructor for class org.mockejb.TransactionManager
-
Creates a new instance of the TransactionManager
with the
default (Supports) policy.
- TransactionPolicy - Class in org.mockejb
-
Enumeration of possible values of the transaction attribute (transaction
policy) as per EJB spec.