com.mockrunner.connector
Class ConnectorTestCaseAdapter

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

public abstract class ConnectorTestCaseAdapter
extends BaseTestCase

Delegator for ConnectorTestModule. You can subclass this adapter or use ConnectorTestModule 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 ConnectorTestModule and should not be edited directly.


Constructor Summary
ConnectorTestCaseAdapter()
           
ConnectorTestCaseAdapter(java.lang.String name)
           
 
Method Summary
protected  ConnectorTestModule getConnectorTestModule()
          Gets the ConnectorTestModule.
protected  java.util.List getCreatedIndexedRecords()
          Delegates to ConnectorTestModule.getCreatedIndexedRecords()
protected  java.util.List getCreatedIndexedRecords(java.lang.String recordName)
          Delegates to ConnectorTestModule.getCreatedIndexedRecords(String)
protected  java.util.List getCreatedMappedRecords()
          Delegates to ConnectorTestModule.getCreatedMappedRecords()
protected  java.util.List getCreatedMappedRecords(java.lang.String recordName)
          Delegates to ConnectorTestModule.getCreatedMappedRecords(String)
protected  InteractionHandler getInteractionHandler()
          Delegates to ConnectorTestModule.getInteractionHandler()
protected  java.util.List getInteractionList()
          Delegates to ConnectorTestModule.getInteractionList()
protected  void setConnectorTestModule(ConnectorTestModule connectorTestModule)
          Sets the ConnectorTestModule.
protected  void setUp()
          Creates the ConnectorTestModule.
protected  void tearDown()
           
protected  void verifyAllInteractionsClosed()
          Delegates to ConnectorTestModule.verifyAllInteractionsClosed()
protected  void verifyConnectionClosed()
          Delegates to ConnectorTestModule.verifyConnectionClosed()
protected  void verifyInteractionClosed(int index)
          Delegates to ConnectorTestModule.verifyInteractionClosed(int)
protected  void verifyLocalTransactionCommitted()
          Delegates to ConnectorTestModule.verifyLocalTransactionCommitted()
protected  void verifyLocalTransactionNotCommitted()
          Delegates to ConnectorTestModule.verifyLocalTransactionNotCommitted()
protected  void verifyLocalTransactionNotRolledBack()
          Delegates to ConnectorTestModule.verifyLocalTransactionNotRolledBack()
protected  void verifyLocalTransactionRolledBack()
          Delegates to ConnectorTestModule.verifyLocalTransactionRolledBack()
protected  void verifyNumberCreatedIndexedRecords(int expected)
          Delegates to ConnectorTestModule.verifyNumberCreatedIndexedRecords(int)
protected  void verifyNumberCreatedIndexedRecords(java.lang.String recordName, int expected)
          Delegates to ConnectorTestModule.verifyNumberCreatedIndexedRecords(String, int)
protected  void verifyNumberCreatedMappedRecords(int expected)
          Delegates to ConnectorTestModule.verifyNumberCreatedMappedRecords(int)
protected  void verifyNumberCreatedMappedRecords(java.lang.String recordName, int expected)
          Delegates to ConnectorTestModule.verifyNumberCreatedMappedRecords(String, int)
 
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

ConnectorTestCaseAdapter

public ConnectorTestCaseAdapter()

ConnectorTestCaseAdapter

public ConnectorTestCaseAdapter(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 ConnectorTestModule. If you overwrite this method, you must call super.setUp().

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

getConnectorTestModule

protected ConnectorTestModule getConnectorTestModule()
Gets the ConnectorTestModule.

Returns:
the ConnectorTestModule

setConnectorTestModule

protected void setConnectorTestModule(ConnectorTestModule connectorTestModule)
Sets the ConnectorTestModule.

Parameters:
connectorTestModule - the ConnectorTestModule

verifyConnectionClosed

protected void verifyConnectionClosed()
Delegates to ConnectorTestModule.verifyConnectionClosed()


getInteractionHandler

protected InteractionHandler getInteractionHandler()
Delegates to ConnectorTestModule.getInteractionHandler()


getInteractionList

protected java.util.List getInteractionList()
Delegates to ConnectorTestModule.getInteractionList()


getCreatedIndexedRecords

protected java.util.List getCreatedIndexedRecords(java.lang.String recordName)
Delegates to ConnectorTestModule.getCreatedIndexedRecords(String)


getCreatedIndexedRecords

protected java.util.List getCreatedIndexedRecords()
Delegates to ConnectorTestModule.getCreatedIndexedRecords()


getCreatedMappedRecords

protected java.util.List getCreatedMappedRecords(java.lang.String recordName)
Delegates to ConnectorTestModule.getCreatedMappedRecords(String)


getCreatedMappedRecords

protected java.util.List getCreatedMappedRecords()
Delegates to ConnectorTestModule.getCreatedMappedRecords()


verifyAllInteractionsClosed

protected void verifyAllInteractionsClosed()
Delegates to ConnectorTestModule.verifyAllInteractionsClosed()


verifyInteractionClosed

protected void verifyInteractionClosed(int index)
Delegates to ConnectorTestModule.verifyInteractionClosed(int)


verifyNumberCreatedIndexedRecords

protected void verifyNumberCreatedIndexedRecords(int expected)
Delegates to ConnectorTestModule.verifyNumberCreatedIndexedRecords(int)


verifyNumberCreatedIndexedRecords

protected void verifyNumberCreatedIndexedRecords(java.lang.String recordName,
                                                 int expected)
Delegates to ConnectorTestModule.verifyNumberCreatedIndexedRecords(String, int)


verifyNumberCreatedMappedRecords

protected void verifyNumberCreatedMappedRecords(int expected)
Delegates to ConnectorTestModule.verifyNumberCreatedMappedRecords(int)


verifyNumberCreatedMappedRecords

protected void verifyNumberCreatedMappedRecords(java.lang.String recordName,
                                                int expected)
Delegates to ConnectorTestModule.verifyNumberCreatedMappedRecords(String, int)


verifyLocalTransactionCommitted

protected void verifyLocalTransactionCommitted()
Delegates to ConnectorTestModule.verifyLocalTransactionCommitted()


verifyLocalTransactionNotCommitted

protected void verifyLocalTransactionNotCommitted()
Delegates to ConnectorTestModule.verifyLocalTransactionNotCommitted()


verifyLocalTransactionRolledBack

protected void verifyLocalTransactionRolledBack()
Delegates to ConnectorTestModule.verifyLocalTransactionRolledBack()


verifyLocalTransactionNotRolledBack

protected void verifyLocalTransactionNotRolledBack()
Delegates to ConnectorTestModule.verifyLocalTransactionNotRolledBack()