|
||||||||||
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.connector.BasicConnectorTestCaseAdapter
public abstract class BasicConnectorTestCaseAdapter
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)
|
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 BasicConnectorTestCaseAdapter()
public BasicConnectorTestCaseAdapter(java.lang.String name)
Method Detail |
---|
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
protected void setUp() throws java.lang.Exception
ConnectorTestModule
. If you
overwrite this method, you must call super.setUp()
.
setUp
in class junit.framework.TestCase
java.lang.Exception
protected ConnectorMockObjectFactory createConnectorMockObjectFactory()
ConnectorMockObjectFactory
.
ConnectorMockObjectFactory
protected ConnectorMockObjectFactory getConnectorMockObjectFactory()
ConnectorMockObjectFactory
.
ConnectorMockObjectFactory
protected void setConnectorMockObjectFactory(ConnectorMockObjectFactory connectorMockObjectFactory)
ConnectorMockObjectFactory
.
connectorMockObjectFactory
- the ConnectorMockObjectFactory
protected ConnectorTestModule createConnectorTestModule()
ConnectorTestModule
based on the current
ConnectorMockObjectFactory
.
Same as createConnectorTestModule(getConnectorMockObjectFactory())
.
ConnectorTestModule
protected ConnectorTestModule createConnectorTestModule(ConnectorMockObjectFactory mockFactory)
ConnectorTestModule
with the specified
ConnectorMockObjectFactory
.
ConnectorTestModule
protected ConnectorTestModule getConnectorTestModule()
ConnectorTestModule
.
ConnectorTestModule
protected void setConnectorTestModule(ConnectorTestModule connectorTestModule)
ConnectorTestModule
.
connectorTestModule
- the ConnectorTestModule
protected void verifyConnectionClosed()
ConnectorTestModule.verifyConnectionClosed()
protected InteractionHandler getInteractionHandler()
ConnectorTestModule.getInteractionHandler()
protected java.util.List getInteractionList()
ConnectorTestModule.getInteractionList()
protected java.util.List getCreatedIndexedRecords(java.lang.String recordName)
ConnectorTestModule.getCreatedIndexedRecords(String)
protected java.util.List getCreatedIndexedRecords()
ConnectorTestModule.getCreatedIndexedRecords()
protected java.util.List getCreatedMappedRecords(java.lang.String recordName)
ConnectorTestModule.getCreatedMappedRecords(String)
protected java.util.List getCreatedMappedRecords()
ConnectorTestModule.getCreatedMappedRecords()
protected void verifyAllInteractionsClosed()
ConnectorTestModule.verifyAllInteractionsClosed()
protected void verifyInteractionClosed(int index)
ConnectorTestModule.verifyInteractionClosed(int)
protected void verifyNumberCreatedIndexedRecords(int expected)
ConnectorTestModule.verifyNumberCreatedIndexedRecords(int)
protected void verifyNumberCreatedIndexedRecords(java.lang.String recordName, int expected)
ConnectorTestModule.verifyNumberCreatedIndexedRecords(String, int)
protected void verifyNumberCreatedMappedRecords(int expected)
ConnectorTestModule.verifyNumberCreatedMappedRecords(int)
protected void verifyNumberCreatedMappedRecords(java.lang.String recordName, int expected)
ConnectorTestModule.verifyNumberCreatedMappedRecords(String, int)
protected void verifyLocalTransactionCommitted()
ConnectorTestModule.verifyLocalTransactionCommitted()
protected void verifyLocalTransactionNotCommitted()
ConnectorTestModule.verifyLocalTransactionNotCommitted()
protected void verifyLocalTransactionRolledBack()
ConnectorTestModule.verifyLocalTransactionRolledBack()
protected void verifyLocalTransactionNotRolledBack()
ConnectorTestModule.verifyLocalTransactionNotRolledBack()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |