com.mockrunner.ejb
Class EJBTestCaseAdapter

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.mockrunner.base.BaseTestCase
              extended by com.mockrunner.ejb.EJBTestCaseAdapter
All Implemented Interfaces:
junit.framework.Test

public abstract class EJBTestCaseAdapter
extends BaseTestCase

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 com.mockrunner.base.BaseTestCase
createActionMockObjectFactory, createActionMockObjectFactory, createActionMockObjectFactory, createActionTestModule, createActionTestModule, createConnectorMockObjectFactory, createConnectorTestModule, createConnectorTestModule, createEJBMockObjectFactory, createEJBTestModule, createEJBTestModule, createJDBCMockObjectFactory, createJDBCTestModule, createJDBCTestModule, createJMSMockObjectFactory, createJMSTestModule, createJMSTestModule, createServletTestModule, createServletTestModule, createTagTestModule, createTagTestModule, createWebMockObjectFactory, createWebMockObjectFactory, createWebMockObjectFactory, getActionMockObjectFactory, getConnectorMockObjectFactory, getEJBMockObjectFactory, getJDBCMockObjectFactory, getJMSMockObjectFactory, getWebMockObjectFactory, setActionMockObjectFactory, setConnectorMockObjectFactory, setEJBMockObjectFactory, setJDBCMockObjectFactory, setJMSMockObjectFactory, setWebMockObjectFactory
 
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

EJBTestCaseAdapter

public EJBTestCaseAdapter()

EJBTestCaseAdapter

public EJBTestCaseAdapter(java.lang.String name)
Method Detail

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class BaseTestCase
Throws:
java.lang.Exception

setUp

protected void setUp()
              throws java.lang.Exception
Creates the EJBTestModule. If you overwrite this method, you must call super.setUp().

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

getEJBTestModule

protected EJBTestModule getEJBTestModule()
Gets the EJBTestModule.

Returns:
the EJBTestModule

setEJBTestModule

protected void setEJBTestModule(EJBTestModule ejbTestModule)
Sets the EJBTestModule.

Parameters:
ejbTestModule - the EJBTestModule

setImplementationSuffix

protected void setImplementationSuffix(java.lang.String impSuffix)
Delegates to EJBTestModule.setImplementationSuffix(String)


setBusinessInterfaceSuffix

protected void setBusinessInterfaceSuffix(java.lang.String businessInterfaceSuffix)
Delegates to EJBTestModule.setBusinessInterfaceSuffix(String)


setHomeInterfaceSuffix

protected void setHomeInterfaceSuffix(java.lang.String homeInterfaceSuffix)
Delegates to EJBTestModule.setHomeInterfaceSuffix(String)


setInterfacePackage

protected void setInterfacePackage(java.lang.String interfacePackage)
Delegates to EJBTestModule.setInterfacePackage(String)


setHomeInterfacePackage

protected void setHomeInterfacePackage(java.lang.String homeInterfacePackage)
Delegates to EJBTestModule.setHomeInterfacePackage(String)


setBusinessInterfacePackage

protected void setBusinessInterfacePackage(java.lang.String businessInterfacePackage)
Delegates to EJBTestModule.setBusinessInterfacePackage(String)


deploy

protected void deploy(org.mockejb.BasicEjbDescriptor descriptor)
Delegates to EJBTestModule.deploy(BasicEjbDescriptor)


deploy

protected void deploy(org.mockejb.BasicEjbDescriptor descriptor,
                      org.mockejb.TransactionPolicy policy)
Delegates to EJBTestModule.deploy(BasicEjbDescriptor, TransactionPolicy)


deploySessionBean

protected void deploySessionBean(java.lang.String jndiName,
                                 java.lang.Class beanClass,
                                 org.mockejb.TransactionPolicy policy)
Delegates to EJBTestModule.deploySessionBean(String, Class, TransactionPolicy)


deploySessionBean

protected void deploySessionBean(java.lang.String jndiName,
                                 java.lang.Class beanClass)
Delegates to EJBTestModule.deploySessionBean(String, Class)


deploySessionBean

protected void deploySessionBean(java.lang.String jndiName,
                                 java.lang.Class beanClass,
                                 boolean stateful)
Delegates to EJBTestModule.deploySessionBean(String, Class, boolean)


deploySessionBean

protected void deploySessionBean(java.lang.String jndiName,
                                 java.lang.Object bean,
                                 org.mockejb.TransactionPolicy policy)
Delegates to EJBTestModule.deploySessionBean(String, Object, TransactionPolicy)


deploySessionBean

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)


deploySessionBean

protected void deploySessionBean(java.lang.String jndiName,
                                 java.lang.Object bean)
Delegates to EJBTestModule.deploySessionBean(String, Object)


deploySessionBean

protected void deploySessionBean(java.lang.String jndiName,
                                 java.lang.Object bean,
                                 boolean stateful)
Delegates to EJBTestModule.deploySessionBean(String, Object, boolean)


deploySessionBean

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)


deployEntityBean

protected void deployEntityBean(java.lang.String jndiName,
                                java.lang.Class beanClass,
                                org.mockejb.TransactionPolicy policy)
Delegates to EJBTestModule.deployEntityBean(String, Class, TransactionPolicy)


deployEntityBean

protected void deployEntityBean(java.lang.String jndiName,
                                java.lang.Class beanClass)
Delegates to EJBTestModule.deployEntityBean(String, Class)


deployMessageBean

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)


deployMessageBean

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)


bindToContext

protected void bindToContext(java.lang.String name,
                             java.lang.Object object)
Delegates to EJBTestModule.bindToContext(String, Object)


lookupBean

protected java.lang.Object lookupBean(java.lang.String name)
Deprecated. 

Delegates to EJBTestModule.lookupBean(String)


lookupBean

protected java.lang.Object lookupBean(java.lang.String name,
                                      java.lang.String createMethod,
                                      java.lang.Object[] parameters)
Deprecated. 

Delegates to EJBTestModule.lookupBean(String, String, Object[])


lookupBean

protected java.lang.Object lookupBean(java.lang.String name,
                                      java.lang.Object[] parameters)
Deprecated. 

Delegates to EJBTestModule.lookupBean(String, Object[])


createBean

protected java.lang.Object createBean(java.lang.String name)
Delegates to EJBTestModule.createBean(String)


createBean

protected java.lang.Object createBean(java.lang.String name,
                                      java.lang.String createMethod,
                                      java.lang.Object[] parameters)
Delegates to EJBTestModule.createBean(String, String, Object[])


createBean

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[])


createBean

protected java.lang.Object createBean(java.lang.String name,
                                      java.lang.Object[] parameters)
Delegates to EJBTestModule.createBean(String, Object[])


createEntityBean

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)


createEntityBean

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)


createEntityBean

protected java.lang.Object createEntityBean(java.lang.String name,
                                            java.lang.Object primaryKey)
Delegates to EJBTestModule.createEntityBean(String, Object)


createEntityBean

protected java.lang.Object createEntityBean(java.lang.String name,
                                            java.lang.Object[] parameters,
                                            java.lang.Object primaryKey)
Delegates to EJBTestModule.createEntityBean(String, Object[], Object)


findByPrimaryKey

protected java.lang.Object findByPrimaryKey(java.lang.String name,
                                            java.lang.Object primaryKey)
Delegates to EJBTestModule.findByPrimaryKey(String, Object)


resetUserTransaction

protected void resetUserTransaction()
Delegates to EJBTestModule.resetUserTransaction()


verifyCommitted

protected void verifyCommitted()
Delegates to EJBTestModule.verifyCommitted()


verifyNotCommitted

protected void verifyNotCommitted()
Delegates to EJBTestModule.verifyNotCommitted()


verifyRolledBack

protected void verifyRolledBack()
Delegates to EJBTestModule.verifyRolledBack()


verifyNotRolledBack

protected void verifyNotRolledBack()
Delegates to EJBTestModule.verifyNotRolledBack()


verifyMarkedForRollback

protected void verifyMarkedForRollback()
Delegates to EJBTestModule.verifyMarkedForRollback()


verifyNotMarkedForRollback

protected void verifyNotMarkedForRollback()
Delegates to EJBTestModule.verifyNotMarkedForRollback()


lookup

protected java.lang.Object lookup(java.lang.String name)
Delegates to EJBTestModule.lookup(String)