|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase com.mockrunner.base.BaseTestCase com.mockrunner.ejb.EJBTestCaseAdapter
public abstract class EJBTestCaseAdapter
Delegator for EJBTestModule
. You can
subclass this adapter or use EJBTestModule
directly (so your test case can use another base class).
This adapter extends BaseTestCase
.
It can be used if you want to use several modules in conjunction.
This class is generated from the EJBTestModule
and should not be edited directly.
Constructor Summary | |
---|---|
EJBTestCaseAdapter()
|
|
EJBTestCaseAdapter(java.lang.String name)
|
Method Summary | |
---|---|
protected void |
bindToContext(java.lang.String name,
java.lang.Object object)
Delegates to EJBTestModule.bindToContext(String, Object) |
protected java.lang.Object |
createBean(java.lang.String name)
Delegates to EJBTestModule.createBean(String) |
protected java.lang.Object |
createBean(java.lang.String name,
java.lang.Object[] parameters)
Delegates to EJBTestModule.createBean(String, Object[]) |
protected java.lang.Object |
createBean(java.lang.String name,
java.lang.String createMethod,
java.lang.Object[] parameters)
Delegates to EJBTestModule.createBean(String, String, Object[]) |
protected java.lang.Object |
createBean(java.lang.String name,
java.lang.String createMethod,
java.lang.Object[] parameters,
java.lang.Class[] parameterTypes)
Delegates to EJBTestModule.createBean(String, String, Object[], Class[]) |
protected java.lang.Object |
createEntityBean(java.lang.String name,
java.lang.Object primaryKey)
Delegates to EJBTestModule.createEntityBean(String, Object) |
protected java.lang.Object |
createEntityBean(java.lang.String name,
java.lang.Object[] parameters,
java.lang.Object primaryKey)
Delegates to EJBTestModule.createEntityBean(String, Object[], Object) |
protected java.lang.Object |
createEntityBean(java.lang.String name,
java.lang.String createMethod,
java.lang.Object[] parameters,
java.lang.Class[] parameterTypes,
java.lang.Object primaryKey)
Delegates to EJBTestModule.createEntityBean(String, String, Object[], Class[], Object) |
protected java.lang.Object |
createEntityBean(java.lang.String name,
java.lang.String createMethod,
java.lang.Object[] parameters,
java.lang.Object primaryKey)
Delegates to EJBTestModule.createEntityBean(String, String, Object[], Object) |
protected void |
deploy(org.mockejb.BasicEjbDescriptor descriptor)
Delegates to EJBTestModule.deploy(BasicEjbDescriptor) |
protected void |
deploy(org.mockejb.BasicEjbDescriptor descriptor,
org.mockejb.TransactionPolicy policy)
Delegates to EJBTestModule.deploy(BasicEjbDescriptor, TransactionPolicy) |
protected void |
deployEntityBean(java.lang.String jndiName,
java.lang.Class beanClass)
Delegates to EJBTestModule.deployEntityBean(String, Class) |
protected void |
deployEntityBean(java.lang.String jndiName,
java.lang.Class beanClass,
org.mockejb.TransactionPolicy policy)
Delegates to EJBTestModule.deployEntityBean(String, Class, TransactionPolicy) |
protected void |
deployMessageBean(java.lang.String connectionFactoryJndiName,
java.lang.String destinationJndiName,
javax.jms.ConnectionFactory connectionFactory,
javax.jms.Destination destination,
java.lang.Object bean)
Delegates to EJBTestModule.deployMessageBean(String, String, ConnectionFactory, Destination, Object) |
protected void |
deployMessageBean(java.lang.String connectionFactoryJndiName,
java.lang.String destinationJndiName,
javax.jms.ConnectionFactory connectionFactory,
javax.jms.Destination destination,
java.lang.Object bean,
org.mockejb.TransactionPolicy policy)
Delegates to EJBTestModule.deployMessageBean(String, String, ConnectionFactory, Destination, Object, TransactionPolicy) |
protected void |
deploySessionBean(java.lang.String jndiName,
java.lang.Class beanClass)
Delegates to EJBTestModule.deploySessionBean(String, Class) |
protected void |
deploySessionBean(java.lang.String jndiName,
java.lang.Class beanClass,
boolean stateful)
Delegates to EJBTestModule.deploySessionBean(String, Class, boolean) |
protected void |
deploySessionBean(java.lang.String jndiName,
java.lang.Class beanClass,
boolean stateful,
org.mockejb.TransactionPolicy policy)
Delegates to EJBTestModule.deploySessionBean(String, Class, boolean, TransactionPolicy) |
protected void |
deploySessionBean(java.lang.String jndiName,
java.lang.Class beanClass,
org.mockejb.TransactionPolicy policy)
Delegates to EJBTestModule.deploySessionBean(String, Class, TransactionPolicy) |
protected void |
deploySessionBean(java.lang.String jndiName,
java.lang.Object bean)
Delegates to EJBTestModule.deploySessionBean(String, Object) |
protected void |
deploySessionBean(java.lang.String jndiName,
java.lang.Object bean,
boolean stateful)
Delegates to EJBTestModule.deploySessionBean(String, Object, boolean) |
protected void |
deploySessionBean(java.lang.String jndiName,
java.lang.Object bean,
boolean stateful,
org.mockejb.TransactionPolicy policy)
Delegates to EJBTestModule.deploySessionBean(String, Object, boolean, TransactionPolicy) |
protected void |
deploySessionBean(java.lang.String jndiName,
java.lang.Object bean,
org.mockejb.TransactionPolicy policy)
Delegates to EJBTestModule.deploySessionBean(String, Object, TransactionPolicy) |
protected java.lang.Object |
findByPrimaryKey(java.lang.String name,
java.lang.Object primaryKey)
Delegates to EJBTestModule.findByPrimaryKey(String, Object) |
protected EJBTestModule |
getEJBTestModule()
Gets the EJBTestModule . |
protected java.lang.Object |
lookup(java.lang.String name)
Delegates to EJBTestModule.lookup(String) |
protected java.lang.Object |
lookupBean(java.lang.String name)
Deprecated. |
protected java.lang.Object |
lookupBean(java.lang.String name,
java.lang.Object[] parameters)
Deprecated. |
protected java.lang.Object |
lookupBean(java.lang.String name,
java.lang.String createMethod,
java.lang.Object[] parameters)
Deprecated. |
protected void |
resetUserTransaction()
Delegates to EJBTestModule.resetUserTransaction() |
protected void |
setBusinessInterfacePackage(java.lang.String businessInterfacePackage)
Delegates to EJBTestModule.setBusinessInterfacePackage(String) |
protected void |
setBusinessInterfaceSuffix(java.lang.String businessInterfaceSuffix)
Delegates to EJBTestModule.setBusinessInterfaceSuffix(String) |
protected void |
setEJBTestModule(EJBTestModule ejbTestModule)
Sets the EJBTestModule . |
protected void |
setHomeInterfacePackage(java.lang.String homeInterfacePackage)
Delegates to EJBTestModule.setHomeInterfacePackage(String) |
protected void |
setHomeInterfaceSuffix(java.lang.String homeInterfaceSuffix)
Delegates to EJBTestModule.setHomeInterfaceSuffix(String) |
protected void |
setImplementationSuffix(java.lang.String impSuffix)
Delegates to EJBTestModule.setImplementationSuffix(String) |
protected void |
setInterfacePackage(java.lang.String interfacePackage)
Delegates to EJBTestModule.setInterfacePackage(String) |
protected void |
setUp()
Creates the EJBTestModule . |
protected void |
tearDown()
|
protected void |
verifyCommitted()
Delegates to EJBTestModule.verifyCommitted() |
protected void |
verifyMarkedForRollback()
Delegates to EJBTestModule.verifyMarkedForRollback() |
protected void |
verifyNotCommitted()
Delegates to EJBTestModule.verifyNotCommitted() |
protected void |
verifyNotMarkedForRollback()
Delegates to EJBTestModule.verifyNotMarkedForRollback() |
protected void |
verifyNotRolledBack()
Delegates to EJBTestModule.verifyNotRolledBack() |
protected void |
verifyRolledBack()
Delegates to EJBTestModule.verifyRolledBack() |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EJBTestCaseAdapter()
public EJBTestCaseAdapter(java.lang.String name)
Method Detail |
---|
protected void tearDown() throws java.lang.Exception
tearDown
in class BaseTestCase
java.lang.Exception
protected void setUp() throws java.lang.Exception
EJBTestModule
. If you
overwrite this method, you must call super.setUp()
.
setUp
in class junit.framework.TestCase
java.lang.Exception
protected EJBTestModule getEJBTestModule()
EJBTestModule
.
EJBTestModule
protected void setEJBTestModule(EJBTestModule ejbTestModule)
EJBTestModule
.
ejbTestModule
- the EJBTestModule
protected void setImplementationSuffix(java.lang.String impSuffix)
EJBTestModule.setImplementationSuffix(String)
protected void setBusinessInterfaceSuffix(java.lang.String businessInterfaceSuffix)
EJBTestModule.setBusinessInterfaceSuffix(String)
protected void setHomeInterfaceSuffix(java.lang.String homeInterfaceSuffix)
EJBTestModule.setHomeInterfaceSuffix(String)
protected void setInterfacePackage(java.lang.String interfacePackage)
EJBTestModule.setInterfacePackage(String)
protected void setHomeInterfacePackage(java.lang.String homeInterfacePackage)
EJBTestModule.setHomeInterfacePackage(String)
protected void setBusinessInterfacePackage(java.lang.String businessInterfacePackage)
EJBTestModule.setBusinessInterfacePackage(String)
protected void deploy(org.mockejb.BasicEjbDescriptor descriptor)
EJBTestModule.deploy(BasicEjbDescriptor)
protected void deploy(org.mockejb.BasicEjbDescriptor descriptor, org.mockejb.TransactionPolicy policy)
EJBTestModule.deploy(BasicEjbDescriptor, TransactionPolicy)
protected void deploySessionBean(java.lang.String jndiName, java.lang.Class beanClass, org.mockejb.TransactionPolicy policy)
EJBTestModule.deploySessionBean(String, Class, TransactionPolicy)
protected void deploySessionBean(java.lang.String jndiName, java.lang.Class beanClass)
EJBTestModule.deploySessionBean(String, Class)
protected void deploySessionBean(java.lang.String jndiName, java.lang.Class beanClass, boolean stateful)
EJBTestModule.deploySessionBean(String, Class, boolean)
protected void deploySessionBean(java.lang.String jndiName, java.lang.Object bean, org.mockejb.TransactionPolicy policy)
EJBTestModule.deploySessionBean(String, Object, TransactionPolicy)
protected void deploySessionBean(java.lang.String jndiName, java.lang.Class beanClass, boolean stateful, org.mockejb.TransactionPolicy policy)
EJBTestModule.deploySessionBean(String, Class, boolean, TransactionPolicy)
protected void deploySessionBean(java.lang.String jndiName, java.lang.Object bean)
EJBTestModule.deploySessionBean(String, Object)
protected void deploySessionBean(java.lang.String jndiName, java.lang.Object bean, boolean stateful)
EJBTestModule.deploySessionBean(String, Object, boolean)
protected void deploySessionBean(java.lang.String jndiName, java.lang.Object bean, boolean stateful, org.mockejb.TransactionPolicy policy)
EJBTestModule.deploySessionBean(String, Object, boolean, TransactionPolicy)
protected void deployEntityBean(java.lang.String jndiName, java.lang.Class beanClass, org.mockejb.TransactionPolicy policy)
EJBTestModule.deployEntityBean(String, Class, TransactionPolicy)
protected void deployEntityBean(java.lang.String jndiName, java.lang.Class beanClass)
EJBTestModule.deployEntityBean(String, Class)
protected void deployMessageBean(java.lang.String connectionFactoryJndiName, java.lang.String destinationJndiName, javax.jms.ConnectionFactory connectionFactory, javax.jms.Destination destination, java.lang.Object bean, org.mockejb.TransactionPolicy policy)
EJBTestModule.deployMessageBean(String, String, ConnectionFactory, Destination, Object, TransactionPolicy)
protected void deployMessageBean(java.lang.String connectionFactoryJndiName, java.lang.String destinationJndiName, javax.jms.ConnectionFactory connectionFactory, javax.jms.Destination destination, java.lang.Object bean)
EJBTestModule.deployMessageBean(String, String, ConnectionFactory, Destination, Object)
protected void bindToContext(java.lang.String name, java.lang.Object object)
EJBTestModule.bindToContext(String, Object)
protected java.lang.Object lookupBean(java.lang.String name)
EJBTestModule.lookupBean(String)
protected java.lang.Object lookupBean(java.lang.String name, java.lang.String createMethod, java.lang.Object[] parameters)
EJBTestModule.lookupBean(String, String, Object[])
protected java.lang.Object lookupBean(java.lang.String name, java.lang.Object[] parameters)
EJBTestModule.lookupBean(String, Object[])
protected java.lang.Object createBean(java.lang.String name)
EJBTestModule.createBean(String)
protected java.lang.Object createBean(java.lang.String name, java.lang.String createMethod, java.lang.Object[] parameters)
EJBTestModule.createBean(String, String, Object[])
protected java.lang.Object createBean(java.lang.String name, java.lang.String createMethod, java.lang.Object[] parameters, java.lang.Class[] parameterTypes)
EJBTestModule.createBean(String, String, Object[], Class[])
protected java.lang.Object createBean(java.lang.String name, java.lang.Object[] parameters)
EJBTestModule.createBean(String, Object[])
protected java.lang.Object createEntityBean(java.lang.String name, java.lang.String createMethod, java.lang.Object[] parameters, java.lang.Class[] parameterTypes, java.lang.Object primaryKey)
EJBTestModule.createEntityBean(String, String, Object[], Class[], Object)
protected java.lang.Object createEntityBean(java.lang.String name, java.lang.String createMethod, java.lang.Object[] parameters, java.lang.Object primaryKey)
EJBTestModule.createEntityBean(String, String, Object[], Object)
protected java.lang.Object createEntityBean(java.lang.String name, java.lang.Object primaryKey)
EJBTestModule.createEntityBean(String, Object)
protected java.lang.Object createEntityBean(java.lang.String name, java.lang.Object[] parameters, java.lang.Object primaryKey)
EJBTestModule.createEntityBean(String, Object[], Object)
protected java.lang.Object findByPrimaryKey(java.lang.String name, java.lang.Object primaryKey)
EJBTestModule.findByPrimaryKey(String, Object)
protected void resetUserTransaction()
EJBTestModule.resetUserTransaction()
protected void verifyCommitted()
EJBTestModule.verifyCommitted()
protected void verifyNotCommitted()
EJBTestModule.verifyNotCommitted()
protected void verifyRolledBack()
EJBTestModule.verifyRolledBack()
protected void verifyNotRolledBack()
EJBTestModule.verifyNotRolledBack()
protected void verifyMarkedForRollback()
EJBTestModule.verifyMarkedForRollback()
protected void verifyNotMarkedForRollback()
EJBTestModule.verifyNotMarkedForRollback()
protected java.lang.Object lookup(java.lang.String name)
EJBTestModule.lookup(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |