com.mockrunner.connector
Class BasicConnectorTestCaseAdapter

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

public abstract class BasicConnectorTestCaseAdapter
extends junit.framework.TestCase

Delegator for ConnectorTestModule. You can subclass this adapter or use ConnectorTestModule directly (so your test case can use another base class). This basic adapter can be used if you don't need any other modules. It does not extend BaseTestCase. If you want to use several modules in conjunction, consider subclassing ConnectorTestCaseAdapter. This class is generated from the ConnectorTestModule and should not be edited directly.


Constructor Summary
BasicConnectorTestCaseAdapter()
           
BasicConnectorTestCaseAdapter(java.lang.String name)
           
 
Method Summary
protected  ConnectorMockObjectFactory createConnectorMockObjectFactory()
          Creates a ConnectorMockObjectFactory.
protected  ConnectorTestModule createConnectorTestModule()
          Creates a ConnectorTestModule based on the current ConnectorMockObjectFactory.
protected  ConnectorTestModule createConnectorTestModule(ConnectorMockObjectFactory mockFactory)
          Creates a ConnectorTestModule with the specified ConnectorMockObjectFactory.
protected  ConnectorMockObjectFactory getConnectorMockObjectFactory()
          Gets the ConnectorMockObjectFactory.
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 setConnectorMockObjectFactory(ConnectorMockObjectFactory connectorMockObjectFactory)
          Sets the ConnectorMockObjectFactory.
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 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

BasicConnectorTestCaseAdapter

public BasicConnectorTestCaseAdapter()

BasicConnectorTestCaseAdapter

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

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
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

createConnectorMockObjectFactory

protected ConnectorMockObjectFactory createConnectorMockObjectFactory()
Creates a ConnectorMockObjectFactory.

Returns:
the created ConnectorMockObjectFactory

getConnectorMockObjectFactory

protected ConnectorMockObjectFactory getConnectorMockObjectFactory()
Gets the ConnectorMockObjectFactory.

Returns:
the ConnectorMockObjectFactory

setConnectorMockObjectFactory

protected void setConnectorMockObjectFactory(ConnectorMockObjectFactory connectorMockObjectFactory)
Sets the ConnectorMockObjectFactory.

Parameters:
connectorMockObjectFactory - the ConnectorMockObjectFactory

createConnectorTestModule

protected ConnectorTestModule createConnectorTestModule()
Creates a ConnectorTestModule based on the current ConnectorMockObjectFactory. Same as createConnectorTestModule(getConnectorMockObjectFactory()).

Returns:
the created ConnectorTestModule

createConnectorTestModule

protected ConnectorTestModule createConnectorTestModule(ConnectorMockObjectFactory mockFactory)
Creates a ConnectorTestModule with the specified ConnectorMockObjectFactory.

Returns:
the created ConnectorTestModule

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()