|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mockrunner.connector.ConnectorTestModule
public class ConnectorTestModule
Module for JCA tests.
Constructor Summary | |
---|---|
ConnectorTestModule(ConnectorMockObjectFactory mockFactory)
|
Method Summary | |
---|---|
java.util.List |
getCreatedIndexedRecords()
Returns a list of all created indexed records by delegating to MockRecordFactory.getCreatedIndexedRecords() . |
java.util.List |
getCreatedIndexedRecords(java.lang.String recordName)
Returns a list of created indexed records that match the specified name by delegating to MockRecordFactory.getCreatedIndexedRecords(String) . |
java.util.List |
getCreatedMappedRecords()
Returns a list of all created mapped records by delegating to MockRecordFactory.getCreatedMappedRecords() . |
java.util.List |
getCreatedMappedRecords(java.lang.String recordName)
Returns a list of created mapped records that match the specified name by delegating to MockRecordFactory.getCreatedMappedRecords(String) . |
InteractionHandler |
getInteractionHandler()
Returns the InteractionHandler . |
java.util.List |
getInteractionList()
Returns a list of all created Interaction objects
by delegating to MockConnection.getInteractionList() . |
void |
verifyAllInteractionsClosed()
Verifies that all interactions are closed. |
void |
verifyConnectionClosed()
Verifies that the connection is closed. |
void |
verifyInteractionClosed(int index)
Verifies that the specified interaction is closed. |
void |
verifyLocalTransactionCommitted()
Verifies that the current local transaction was committed. |
void |
verifyLocalTransactionNotCommitted()
Verifies that the current local transaction was not committed. |
void |
verifyLocalTransactionNotRolledBack()
Verifies that the current local transaction was not rolled back. |
void |
verifyLocalTransactionRolledBack()
Verifies that the current local transaction was rolled back. |
void |
verifyNumberCreatedIndexedRecords(int expected)
Verifies that expected number of indexed records
have been created. |
void |
verifyNumberCreatedIndexedRecords(java.lang.String recordName,
int expected)
Verifies that expected number of indexed records
with the specified name have been created. |
void |
verifyNumberCreatedMappedRecords(int expected)
Verifies that expected number of mapped records
have been created. |
void |
verifyNumberCreatedMappedRecords(java.lang.String recordName,
int expected)
Verifies that expected number of mapped records
with the specified name have been created. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectorTestModule(ConnectorMockObjectFactory mockFactory)
Method Detail |
---|
public InteractionHandler getInteractionHandler()
InteractionHandler
.
InteractionHandler
public java.util.List getInteractionList()
Interaction
objects
by delegating to MockConnection.getInteractionList()
.
List
of all created Interaction
objectspublic java.util.List getCreatedIndexedRecords()
MockRecordFactory.getCreatedIndexedRecords()
.
List
of all created indexed recordspublic java.util.List getCreatedIndexedRecords(java.lang.String recordName)
MockRecordFactory.getCreatedIndexedRecords(String)
.
recordName
- the name of the record
List
of matching indexed recordspublic java.util.List getCreatedMappedRecords()
MockRecordFactory.getCreatedMappedRecords()
.
List
of all created mapped recordspublic java.util.List getCreatedMappedRecords(java.lang.String recordName)
MockRecordFactory.getCreatedMappedRecords(String)
.
recordName
- the name of the record
List
of matching mapped recordspublic void verifyConnectionClosed()
VerifyFailedException
- if verification failspublic void verifyAllInteractionsClosed()
VerifyFailedException
- if verification failspublic void verifyInteractionClosed(int index)
index
- the index of the Interaction
VerifyFailedException
- if verification failspublic void verifyNumberCreatedIndexedRecords(int expected)
expected
number of indexed records
have been created.
expected
- the expected number of indexed records
VerifyFailedException
- if verification failspublic void verifyNumberCreatedIndexedRecords(java.lang.String recordName, int expected)
expected
number of indexed records
with the specified name have been created.
recordName
- the name of the recordexpected
- the expected number of indexed records
VerifyFailedException
- if verification failspublic void verifyNumberCreatedMappedRecords(int expected)
expected
number of mapped records
have been created.
expected
- the expected number of mapped records
VerifyFailedException
- if verification failspublic void verifyNumberCreatedMappedRecords(java.lang.String recordName, int expected)
expected
number of mapped records
with the specified name have been created.
recordName
- the name of the recordexpected
- the expected number of mapped records
VerifyFailedException
- if verification failspublic void verifyLocalTransactionCommitted()
VerifyFailedException
- if verification failspublic void verifyLocalTransactionNotCommitted()
VerifyFailedException
- if verification failspublic void verifyLocalTransactionRolledBack()
VerifyFailedException
- if verification failspublic void verifyLocalTransactionNotRolledBack()
VerifyFailedException
- if verification fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |