| java.lang.Object com.mockrunner.jdbc.JDBCTestModule
JDBCTestModule | public class JDBCTestModule (Code) | | Module for JDBC tests.
|
Method Summary | |
public MockCallableStatement | getCallableStatement(int index) Returns a
com.mockrunner.mock.jdbc.MockCallableStatement that was
created using a
com.mockrunner.mock.jdbc.MockConnection by its index. | public MockCallableStatement | getCallableStatement(String sql) Returns a
com.mockrunner.mock.jdbc.MockCallableStatement that was
created using a
com.mockrunner.mock.jdbc.MockConnection by its SQL statement. | public Object | getCallableStatementParameter(CallableStatement statement, int indexOfParameter) Returns a parameter that was added to a CallableStatement
using its set methods. | public Object | getCallableStatementParameter(String sql, int indexOfParameter) Returns a parameter that was added to a CallableStatement
using its set methods. | public Object | getCallableStatementParameter(int indexOfStatement, int indexOfParameter) Returns an object that was added to a CallableStatement
using its set methods. | public Object | getCallableStatementParameter(CallableStatement statement, String nameOfParameter) Returns a parameter that was added to a CallableStatement
using its set methods. | public Object | getCallableStatementParameter(String sql, String nameOfParameter) Returns a parameter that was added to a CallableStatement
using its set methods. | public Object | getCallableStatementParameter(int indexOfStatement, String nameOfParameter) Returns an object that was added to a CallableStatement
using its set methods. | public CallableStatementResultSetHandler | getCallableStatementResultSetHandler() Returns the
CallableStatementResultSetHandler . | public List | getCallableStatements() Returns all
com.mockrunner.mock.jdbc.MockCallableStatement objects. | public List | getCallableStatements(String sql) Returns all
com.mockrunner.mock.jdbc.MockCallableStatement objects with
the specified SQL statement as a List . | public Map | getExecutedSQLStatementParameter() | public Map | getExecutedSQLStatementParameterMap() Returns a Map of all parameters that were used when
executing a
com.mockrunner.mock.jdbc.MockPreparedStatement or
com.mockrunner.mock.jdbc.MockCallableStatement .
The keys are the corresponding SQL statements. | public ParameterSets | getExecutedSQLStatementParameterSets(String sql) Returns the
ParameterSets object for the specified SQL statement. | public List | getExecutedSQLStatements() Returns a List of all SQL statements that were executed
by calling an execute method of a
com.mockrunner.mock.jdbc.MockStatement ,
com.mockrunner.mock.jdbc.MockPreparedStatement or
com.mockrunner.mock.jdbc.MockCallableStatement . | public MockPreparedStatement | getPreparedStatement(int index) Returns a
com.mockrunner.mock.jdbc.MockPreparedStatement that was
created using a
com.mockrunner.mock.jdbc.MockConnection by its index. | public MockPreparedStatement | getPreparedStatement(String sql) Returns a
com.mockrunner.mock.jdbc.MockPreparedStatement that was
created using a
com.mockrunner.mock.jdbc.MockConnection by its SQL statement. | public Object | getPreparedStatementParameter(PreparedStatement statement, int indexOfParameter) Returns a parameter that was added to a PreparedStatement
using its set methods. | public Object | getPreparedStatementParameter(String sql, int indexOfParameter) Returns a parameter that was added to a PreparedStatement
using its set methods. | public Object | getPreparedStatementParameter(int indexOfStatement, int indexOfParameter) Returns an object that was added to a PreparedStatement
using its set methods. | public PreparedStatementResultSetHandler | getPreparedStatementResultSetHandler() Returns the
PreparedStatementResultSetHandler . | public List | getPreparedStatements() Returns all
com.mockrunner.mock.jdbc.MockPreparedStatement objects. | public List | getPreparedStatements(String sql) Returns all
com.mockrunner.mock.jdbc.MockPreparedStatement objects with
the specified SQL statement as a List . | public MockResultSet | getReturnedResultSet(String id) Returns the ResultSet objects with the specified id. | public List | getReturnedResultSets(String id) Returns a List of the ResultSet objects with
the specified id. | public List | getReturnedResultSets() Returns a List of all ResultSet objects that were returned
by calling an executeQuery method of a
com.mockrunner.mock.jdbc.MockStatement ,
com.mockrunner.mock.jdbc.MockPreparedStatement or
com.mockrunner.mock.jdbc.MockCallableStatement .
Please note that the List may contain arrays of ResultSet objects,
if a query returned multiple result sets. | public MockStatement | getStatement(int index) Returns a
com.mockrunner.mock.jdbc.MockStatement by its index. | public StatementResultSetHandler | getStatementResultSetHandler() Returns the
StatementResultSetHandler . | public List | getStatements() Returns all
com.mockrunner.mock.jdbc.MockStatement objects. | public void | setCaseSensitive(boolean caseSensitive) Set if specified SQL statements should be handled case sensitive.
Defaults to to false , i.e. | public void | setExactMatch(boolean exactMatch) Set if specified SQL statements must match exactly.
Defaults to false , i.e. | public void | setUseRegularExpressions(boolean useRegularExpressions) Set if regular expressions should be used when matching
SQL statements. | public void | verifyAllResultSetsClosed() Verifies that all ResultSet objects are closed.
Only recognizes ResultSet objects that were actually
returned when executing a statement and that were explicitly closed. | public void | verifyAllStatementsClosed() Verifies that all statements, all prepared statements and
all callable statements are closed. | public void | verifyCallableStatementClosed(int index) Verifies that a callable statement is closed. | public void | verifyCallableStatementClosed(String sql) Verifies that a callable statement is closed. | public void | verifyCallableStatementNotPresent(String sql) Verifies that a CallableStatement with the specified
SQL statement is not present. | public void | verifyCallableStatementOutParameterRegistered(CallableStatement statement, int indexOfParameter) Verifies that an out parameter was registered on the specified
CallableStatement . | public void | verifyCallableStatementOutParameterRegistered(String sql, int indexOfParameter) Verifies that an out parameter was registered on the
CallableStatement with the specified SQL. | public void | verifyCallableStatementOutParameterRegistered(int indexOfStatement, int indexOfParameter) Verifies that an out parameter was registered on the
CallableStatement with the specified index. | public void | verifyCallableStatementOutParameterRegistered(CallableStatement statement, String nameOfParameter) Verifies that an out parameter was registered on the specified
CallableStatement . | public void | verifyCallableStatementOutParameterRegistered(String sql, String nameOfParameter) Verifies that an out parameter was registered on the
CallableStatement with the specified SQL. | public void | verifyCallableStatementOutParameterRegistered(int indexOfStatement, String nameOfParameter) Verifies that an out parameter was registered on the
CallableStatement with the specified index. | public void | verifyCallableStatementParameter(CallableStatement statement, int indexOfParameter, Object object) Verifies that a parameter from the specified CallableStatement is equal
to the specified object. | public void | verifyCallableStatementParameter(String sql, int indexOfParameter, Object object) Verifies that a parameter from the CallableStatement with the
specified SQL statement is equal to the specified object. | public void | verifyCallableStatementParameter(int indexOfStatement, int indexOfParameter, Object object) Verifies that a parameter from the CallableStatement with the
specified SQL statement is equal to the specified object. | public void | verifyCallableStatementParameter(CallableStatement statement, String nameOfParameter, Object object) Verifies that a parameter from the specified CallableStatement is equal
to the specified object. | public void | verifyCallableStatementParameter(String sql, String nameOfParameter, Object object) Verifies that a parameter from the CallableStatement with the
specified SQL statement is equal to the specified object. | public void | verifyCallableStatementParameter(int indexOfStatement, String nameOfParameter, Object object) Verifies that a parameter from the CallableStatement with the
specified SQL statement is equal to the specified object. | public void | verifyCallableStatementParameterNotPresent(CallableStatement statement, int indexOfParameter) Verifies that a parameter with the specified index is not present. | public void | verifyCallableStatementParameterNotPresent(String sql, int indexOfParameter) Verifies that a parameter with the specified index is not present. | public void | verifyCallableStatementParameterNotPresent(int indexOfStatement, int indexOfParameter) Verifies that a parameter with the specified index is not present. | public void | verifyCallableStatementParameterNotPresent(CallableStatement statement, String nameOfParameter) Verifies that a parameter with the specified index is not present. | public void | verifyCallableStatementParameterNotPresent(String sql, String nameOfParameter) Verifies that a parameter with the specified index is not present. | public void | verifyCallableStatementParameterNotPresent(int indexOfStatement, String nameOfParameter) Verifies that a parameter with the specified index is not present. | public void | verifyCallableStatementParameterPresent(CallableStatement statement, int indexOfParameter) Verifies that a parameter was added to a CallableStatement with
the specified index. | public void | verifyCallableStatementParameterPresent(String sql, int indexOfParameter) Verifies that a parameter was added to a CallableStatement with
the specified index. | public void | verifyCallableStatementParameterPresent(int indexOfStatement, int indexOfParameter) Verifies that a parameter was added to a CallableStatement with
the specified index. | public void | verifyCallableStatementParameterPresent(CallableStatement statement, String nameOfParameter) Verifies that a parameter was added to a CallableStatement with
the specified index. | public void | verifyCallableStatementParameterPresent(String sql, String nameOfParameter) Verifies that a parameter was added to a CallableStatement with
the specified index. | public void | verifyCallableStatementParameterPresent(int indexOfStatement, String nameOfParameter) Verifies that a parameter was added to a CallableStatement with
the specified index. | public void | verifyCallableStatementPresent(String sql) Verifies that a CallableStatement with the specified
SQL statement is present. | public void | verifyCommitted() Verifies that the changes were commited, i.e. | public void | verifyConnectionClosed() Verifies that the connection is closed. | public void | verifyNotCommitted() Verifies that the changes were not commited.
Makes only sense, if the Connection is not in
autocommit mode. | public void | verifyNotRolledBack() Verifies that the changes were not rolled back. | public void | verifyNumberCallableStatements(int number) Verifies the number of callable statements. | public void | verifyNumberCallableStatements(int number, String sql) Verifies the number of callable statements with the specified
SQL. | public void | verifyNumberCommits(int number) Verifies the number of commit calls. | public void | verifyNumberPreparedStatements(int number) Verifies the number of prepared statements. | public void | verifyNumberPreparedStatements(int number, String sql) Verifies the number of prepared statements with the specified
SQL. | public void | verifyNumberRollbacks(int number) Verifies the number of rollback calls. | public void | verifyNumberStatements(int number) Verifies the number of statements. | public void | verifyPreparedStatementClosed(int index) Verifies that a prepared statement is closed. | public void | verifyPreparedStatementClosed(String sql) Verifies that a prepared statement is closed. | public void | verifyPreparedStatementNotPresent(String sql) Verifies that a PreparedStatement with the specified
SQL statement is not present. | public void | verifyPreparedStatementParameter(PreparedStatement statement, int indexOfParameter, Object object) Verifies that a parameter from the specified PreparedStatement is equal
to the specified object. | public void | verifyPreparedStatementParameter(String sql, int indexOfParameter, Object object) Verifies that a parameter from the PreparedStatement with the
specified SQL statement is equal to the specified object. | public void | verifyPreparedStatementParameter(int indexOfStatement, int indexOfParameter, Object object) Verifies that a parameter from the PreparedStatement with the
specified SQL statement is equal to the specified object. | public void | verifyPreparedStatementParameterNotPresent(PreparedStatement statement, int indexOfParameter) Verifies that a parameter with the specified index is not present. | public void | verifyPreparedStatementParameterNotPresent(String sql, int indexOfParameter) Verifies that a parameter with the specified index is not present. | public void | verifyPreparedStatementParameterNotPresent(int indexOfStatement, int indexOfParameter) Verifies that a parameter with the specified index is not present. | public void | verifyPreparedStatementParameterPresent(PreparedStatement statement, int indexOfParameter) Verifies that a parameter was added to a PreparedStatement with
the specified index. | public void | verifyPreparedStatementParameterPresent(String sql, int indexOfParameter) Verifies that a parameter was added to a PreparedStatement with
the specified index. | public void | verifyPreparedStatementParameterPresent(int indexOfStatement, int indexOfParameter) Verifies that a parameter was added to a PreparedStatement with
the specified index. | public void | verifyPreparedStatementPresent(String sql) Verifies that a PreparedStatement with the specified
SQL statement is present. | public void | verifyResultSetClosed(String id) Verifies that the ResultSet with the
specified id is closed. | public void | verifyResultSetColumn(MockResultSet resultSet, int number, List columnData) Verifies that a column of a ResultSet is equal to the
entries in the specified List . | public void | verifyResultSetColumn(MockResultSet resultSet, int number, Object[] columnData) Verifies that a column of a ResultSet is equal to the
entries in the specified array. | public void | verifyResultSetColumn(String id, int number, List columnData) Verifies that a column of a ResultSet is equal to the
entries in the specified List . | public void | verifyResultSetColumn(String id, int number, Object[] columnData) Verifies that a column of a ResultSet is equal to the
entries in the specified array. | public void | verifyResultSetColumn(MockResultSet resultSet, String name, List columnData) Verifies that a column of a ResultSet is equal to the
entries in the specified List . | public void | verifyResultSetColumn(MockResultSet resultSet, String name, Object[] columnData) Verifies that a column of a ResultSet is equal to the
entries in the specified array. | public void | verifyResultSetColumn(String id, String name, List columnData) Verifies that a column of a ResultSet is equal to the
entries in the specified List . | public void | verifyResultSetColumn(String id, String name, Object[] columnData) Verifies that a column of a ResultSet is equal to the
entries in the specified array. | public void | verifyResultSetEquals(MockResultSet source, MockResultSet target) Verifies that a ResultSet is equal to another one. | public void | verifyResultSetEquals(String id, MockResultSet target) Verifies that a ResultSet is equal to another one. | public void | verifyResultSetRow(MockResultSet resultSet, int number, List rowData) Verifies that a row of a ResultSet is equal to the
entries in the specified List . | public void | verifyResultSetRow(MockResultSet resultSet, int number, Object[] rowData) Verifies that a row of a ResultSet is equal to the
entries in the specified array. | public void | verifyResultSetRow(String id, int number, List rowData) Verifies that a row of a ResultSet is equal to the
entries in the specified List . | public void | verifyResultSetRow(String id, int number, Object[] rowData) Verifies that a row of a ResultSet is equal to the
entries in the specified array. | public void | verifyResultSetRowDeleted(MockResultSet resultSet, int number) Verifies that the specified row of a ResultSet was
deleted. | public void | verifyResultSetRowDeleted(String id, int number) Verifies that the specified row of a ResultSet was
deleted. | public void | verifyResultSetRowInserted(MockResultSet resultSet, int number) Verifies that the specified row of a ResultSet was
inserted. | public void | verifyResultSetRowInserted(String id, int number) Verifies that the specified row of a ResultSet was
inserted. | public void | verifyResultSetRowNotDeleted(MockResultSet resultSet, int number) Verifies that the specified row of a ResultSet was
not deleted. | public void | verifyResultSetRowNotDeleted(String id, int number) Verifies that the specified row of a ResultSet was
not deleted. | public void | verifyResultSetRowNotInserted(MockResultSet resultSet, int number) Verifies that the specified row of a ResultSet was
not inserted. | public void | verifyResultSetRowNotInserted(String id, int number) Verifies that the specified row of a ResultSet was
not inserted. | public void | verifyResultSetRowNotUpdated(MockResultSet resultSet, int number) Verifies that the specified row of a ResultSet was
not updated. | public void | verifyResultSetRowNotUpdated(String id, int number) Verifies that the specified row of a ResultSet was
not updated. | public void | verifyResultSetRowUpdated(MockResultSet resultSet, int number) Verifies that the specified row of a ResultSet was
updated. | public void | verifyResultSetRowUpdated(String id, int number) Verifies that the specified row of a ResultSet was
updated. | public void | verifyRolledBack() Verifies that the changes were rolled back, i.e. | public void | verifySQLStatementExecuted(String sql) Verifies that an SQL statement was executed. | public void | verifySQLStatementNotExecuted(String sql) Verifies that an SQL statement was not executed. | public void | verifySQLStatementParameter(String sql, int indexOfParameterSet, Map parameterMap) Verifies the parameters for the specified SQL statement.
If more than one SQL statement is found, this method uses the
first one. | public void | verifySQLStatementParameter(String sql, int indexOfParameterSet, int indexOfParameter, Object expectedParameter) Verifies the parameter for the specified SQL statement.
If more than one SQL statement is found, this method uses the
first one.
You can specify the index of the parameter set. | public void | verifySQLStatementParameter(String sql, int indexOfParameterSet, String nameOfParameter, Object expectedParameter) Verifies the parameter for the specified SQL statement.
If more than one SQL statement is found, this method uses the
first one.
You can specify the index of the parameter set. | public void | verifySQLStatementParameterNumber(String sql, int indexOfParameterSet, int number) Verifies the number of parameters for the specified SQL statement.
If more than one SQL statement is found, this method uses the
first one. | public void | verifyStatementClosed(int index) Verifies that a statement is closed. |
getCallableStatementParameter | public Object getCallableStatementParameter(CallableStatement statement, int indexOfParameter)(Code) | | Returns a parameter that was added to a CallableStatement
using its set methods. Simple data types are returned as
the corresponsing wrapper type.
Parameters: statement - the CallableStatement Parameters: indexOfParameter - the index used to set the parameter the corresponding object |
getCallableStatementParameter | public Object getCallableStatementParameter(String sql, int indexOfParameter)(Code) | | Returns a parameter that was added to a CallableStatement
using its set methods. Uses the first CallableStatement
with the specified SQL statement. Simple data types are returned as
the corresponsing wrapper type.
Parameters: sql - the SQL statement Parameters: indexOfParameter - the index used to set the object the corresponding object |
getCallableStatementParameter | public Object getCallableStatementParameter(int indexOfStatement, int indexOfParameter)(Code) | | Returns an object that was added to a CallableStatement
using its set methods. Simple data types are returned as
the corresponsing wrapper type.
Parameters: indexOfStatement - the index of the statement Parameters: indexOfParameter - the index used to set the object the corresponding object |
getCallableStatementParameter | public Object getCallableStatementParameter(CallableStatement statement, String nameOfParameter)(Code) | | Returns a parameter that was added to a CallableStatement
using its set methods.
Parameters: statement - the CallableStatement Parameters: nameOfParameter - the name of the parameter the corresponding object |
getCallableStatementParameter | public Object getCallableStatementParameter(String sql, String nameOfParameter)(Code) | | Returns a parameter that was added to a CallableStatement
using its set methods. Uses the first CallableStatement
with the specified SQL statement.
Parameters: sql - the SQL statement Parameters: nameOfParameter - the name of the parameter the corresponding object |
getCallableStatementParameter | public Object getCallableStatementParameter(int indexOfStatement, String nameOfParameter)(Code) | | Returns an object that was added to a CallableStatement
using its set methods.
Parameters: indexOfStatement - the index of the statement Parameters: nameOfParameter - the name of the parameter the corresponding object |
getExecutedSQLStatementParameterSets | public ParameterSets getExecutedSQLStatementParameterSets(String sql)(Code) | | Returns the
ParameterSets object for the specified SQL statement.
If more than one
ParameterSets object is found, the first one
will be returned.
Parameters: sql - the the SQL statement the ParameterSets object or null if nomatching object is found |
getPreparedStatementParameter | public Object getPreparedStatementParameter(PreparedStatement statement, int indexOfParameter)(Code) | | Returns a parameter that was added to a PreparedStatement
using its set methods. Simple data types are returned as
the corresponsing wrapper type.
Parameters: statement - the PreparedStatement Parameters: indexOfParameter - the index used to set the parameter the corresponding object |
getPreparedStatementParameter | public Object getPreparedStatementParameter(String sql, int indexOfParameter)(Code) | | Returns a parameter that was added to a PreparedStatement
using its set methods. Uses the first PreparedStatement
with the specified SQL statement. Simple data types are returned as
the corresponsing wrapper type.
Parameters: sql - the SQL statement Parameters: indexOfParameter - the index used to set the object the corresponding object |
getPreparedStatementParameter | public Object getPreparedStatementParameter(int indexOfStatement, int indexOfParameter)(Code) | | Returns an object that was added to a PreparedStatement
using its set methods. Simple data types are returned as
the corresponsing wrapper type.
Parameters: indexOfStatement - the index of the statement Parameters: indexOfParameter - the index used to set the object the corresponding object |
getReturnedResultSet | public MockResultSet getReturnedResultSet(String id)(Code) | | Returns the ResultSet objects with the specified id.
If there are more than one ResultSet objects with the
specified id, the first one is returned. If there is no
ResultSet with the specified id, this method
returns null .
Please also see
JDBCTestModule.getReturnedResultSets(String) .
the ResultSet with the specified id |
getReturnedResultSets | public List getReturnedResultSets(String id)(Code) | | Returns a List of the ResultSet objects with
the specified id. In contrast to
JDBCTestModule.getReturnedResultSets , the
returned List never contains ResultSet[] objects,
only single result sets. If
JDBCTestModule.getReturnedResultSets returns an
array, every ResultSet is checked and added to the returned List ,
if the id matches.
Please note that ResultSet objects are cloned when executing
statements. The ResultSet objects in the List
returned by this method are really the instances the statement returned
and not the instances you have used when preparing them.
the List of ResultSet objects |
getReturnedResultSets | public List getReturnedResultSets()(Code) | | Returns a List of all ResultSet objects that were returned
by calling an executeQuery method of a
com.mockrunner.mock.jdbc.MockStatement ,
com.mockrunner.mock.jdbc.MockPreparedStatement or
com.mockrunner.mock.jdbc.MockCallableStatement .
Please note that the List may contain arrays of ResultSet objects,
if a query returned multiple result sets. The List may
contain ResultSet objects and ResultSet[] objects.
If a query returned multiple result sets, the list will always contain
the full array of ResultSet objects that were prepared, even
if
com.mockrunner.mock.jdbc.MockStatement.getMoreResults was
not called for all the result sets.
Please note that ResultSet objects are cloned when executing
statements. The ResultSet objects in the List
returned by this method are really the instances the statement returned
and not the instances you have used when preparing them.
the List of ResultSet or ResultSet[] objects |
setExactMatch | public void setExactMatch(boolean exactMatch)(Code) | | Set if specified SQL statements must match exactly.
Defaults to false , i.e. the SQL statement used
to create a PreparedStatement must contain
the specified SQL statement, but does not have to match
exactly. If the original statement is insert into mytable values(?, ?, ?)
verifyPreparedStatementPresent("insert into mytable")
will pass.
Please note that this method controls SQL statement
matching for this class, e.g. what statements the method
JDBCTestModule.getPreparedStatements(String) returns or what statements
are taken into account by the method
JDBCTestModule.verifySQLStatementExecuted(String) .
In contrast to
AbstractResultSetHandler.setExactMatch(boolean) it does
not control the prepared results that are returned when the tested application
executes a matching statement.
Parameters: exactMatch - enable or disable exact matching |
setUseRegularExpressions | public void setUseRegularExpressions(boolean useRegularExpressions)(Code) | | Set if regular expressions should be used when matching
SQL statements. Irrelevant if exactMatch is
true . Default is false , i.e. you
cannot use regular expressions and matching is based
on string comparison.
Please note that this method controls SQL statement
matching for the methods of this class, e.g. what statements the method
JDBCTestModule.getPreparedStatements(String) returns or what statements
are taken into account by the method
JDBCTestModule.verifySQLStatementExecuted(String) .
In contrast to
AbstractResultSetHandler.setUseRegularExpressions(boolean) it does
not control the prepared results that are returned when the tested application
executes a matching statement.
Parameters: useRegularExpressions - should regular expressions be used |
verifyAllResultSetsClosed | public void verifyAllResultSetsClosed()(Code) | | Verifies that all ResultSet objects are closed.
Only recognizes ResultSet objects that were actually
returned when executing a statement and that were explicitly closed.
Implicit closed ResultSet objects (when closing a statement)
are not recognized.
throws: VerifyFailedException - if verification fails |
verifyAllStatementsClosed | public void verifyAllStatementsClosed()(Code) | | Verifies that all statements, all prepared statements and
all callable statements are closed.
throws: VerifyFailedException - if verification fails |
verifyCallableStatementClosed | public void verifyCallableStatementClosed(int index)(Code) | | Verifies that a callable statement is closed.
Parameters: index - the index of the callable statement throws: VerifyFailedException - if verification fails |
verifyCallableStatementClosed | public void verifyCallableStatementClosed(String sql)(Code) | | Verifies that a callable statement is closed.
Parameters: sql - the SQL statement throws: VerifyFailedException - if verification fails |
verifyCallableStatementNotPresent | public void verifyCallableStatementNotPresent(String sql)(Code) | | Verifies that a CallableStatement with the specified
SQL statement is not present.
Parameters: sql - the SQL statement throws: VerifyFailedException - if verification fails |
verifyCallableStatementOutParameterRegistered | public void verifyCallableStatementOutParameterRegistered(CallableStatement statement, int indexOfParameter)(Code) | | Verifies that an out parameter was registered on the specified
CallableStatement .
Parameters: statement - the CallableStatement Parameters: indexOfParameter - the index of the parameter throws: VerifyFailedException - if verification fails |
verifyCallableStatementOutParameterRegistered | public void verifyCallableStatementOutParameterRegistered(String sql, int indexOfParameter)(Code) | | Verifies that an out parameter was registered on the
CallableStatement with the specified SQL.
Parameters: sql - the SQL statement Parameters: indexOfParameter - the index of the parameter throws: VerifyFailedException - if verification fails |
verifyCallableStatementOutParameterRegistered | public void verifyCallableStatementOutParameterRegistered(int indexOfStatement, int indexOfParameter)(Code) | | Verifies that an out parameter was registered on the
CallableStatement with the specified index.
Parameters: indexOfStatement - the index of the CallableStatement Parameters: indexOfParameter - the index of the parameter throws: VerifyFailedException - if verification fails |
verifyCallableStatementOutParameterRegistered | public void verifyCallableStatementOutParameterRegistered(CallableStatement statement, String nameOfParameter)(Code) | | Verifies that an out parameter was registered on the specified
CallableStatement .
Parameters: statement - the CallableStatement Parameters: nameOfParameter - the name of the parameter throws: VerifyFailedException - if verification fails |
verifyCallableStatementOutParameterRegistered | public void verifyCallableStatementOutParameterRegistered(String sql, String nameOfParameter)(Code) | | Verifies that an out parameter was registered on the
CallableStatement with the specified SQL.
Parameters: sql - the SQL statement Parameters: nameOfParameter - the name of the parameter throws: VerifyFailedException - if verification fails |
verifyCallableStatementOutParameterRegistered | public void verifyCallableStatementOutParameterRegistered(int indexOfStatement, String nameOfParameter)(Code) | | Verifies that an out parameter was registered on the
CallableStatement with the specified index.
Parameters: indexOfStatement - the index of the CallableStatement Parameters: nameOfParameter - the name of the parameter throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameter | public void verifyCallableStatementParameter(CallableStatement statement, int indexOfParameter, Object object)(Code) | | Verifies that a parameter from the specified CallableStatement is equal
to the specified object. Please use the corresponding wrapper type
for primitive data types.
Parameters: statement - the CallableStatement Parameters: indexOfParameter - the index used to set the object Parameters: object - the expected object throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameter | public void verifyCallableStatementParameter(String sql, int indexOfParameter, Object object)(Code) | | Verifies that a parameter from the CallableStatement with the
specified SQL statement is equal to the specified object.
Uses the first CallableStatement with the specified SQL.
Please use the corresponding wrapper type for primitive data types.
Parameters: sql - the SQL statement of the CallableStatement Parameters: indexOfParameter - the index used to set the object Parameters: object - the expected object throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameter | public void verifyCallableStatementParameter(int indexOfStatement, int indexOfParameter, Object object)(Code) | | Verifies that a parameter from the CallableStatement with the
specified SQL statement is equal to the specified object.
Please use the corresponding wrapper type for primitive data types.
Parameters: indexOfStatement - the index of the statement Parameters: indexOfParameter - the index used to set the object Parameters: object - the expected object throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameter | public void verifyCallableStatementParameter(CallableStatement statement, String nameOfParameter, Object object)(Code) | | Verifies that a parameter from the specified CallableStatement is equal
to the specified object. Please use the corresponding wrapper type
for primitive data types.
Parameters: statement - the CallableStatement Parameters: nameOfParameter - the name of the parameter Parameters: object - the expected object throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameter | public void verifyCallableStatementParameter(String sql, String nameOfParameter, Object object)(Code) | | Verifies that a parameter from the CallableStatement with the
specified SQL statement is equal to the specified object.
Uses the first CallableStatement with the specified SQL.
Please use the corresponding wrapper type for primitive data types.
Parameters: sql - the SQL statement of the CallableStatement Parameters: nameOfParameter - the name of the parameter Parameters: object - the expected object throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameter | public void verifyCallableStatementParameter(int indexOfStatement, String nameOfParameter, Object object)(Code) | | Verifies that a parameter from the CallableStatement with the
specified SQL statement is equal to the specified object.
Please use the corresponding wrapper type for primitive data types.
Parameters: indexOfStatement - the index of the statement Parameters: nameOfParameter - the name of the parameter Parameters: object - the expected object throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameterNotPresent | public void verifyCallableStatementParameterNotPresent(CallableStatement statement, int indexOfParameter)(Code) | | Verifies that a parameter with the specified index is not present.
Parameters: statement - the CallableStatement Parameters: indexOfParameter - the index used to set the object throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameterNotPresent | public void verifyCallableStatementParameterNotPresent(String sql, int indexOfParameter)(Code) | | Verifies that a parameter with the specified index is not present.
Uses the first CallableStatement with the specified SQL.
Parameters: sql - the SQL statement of the CallableStatement Parameters: indexOfParameter - the index used to set the object throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameterNotPresent | public void verifyCallableStatementParameterNotPresent(int indexOfStatement, int indexOfParameter)(Code) | | Verifies that a parameter with the specified index is not present.
Parameters: indexOfStatement - the index of the statement Parameters: indexOfParameter - the index used to set the object throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameterNotPresent | public void verifyCallableStatementParameterNotPresent(CallableStatement statement, String nameOfParameter)(Code) | | Verifies that a parameter with the specified index is not present.
Parameters: statement - the CallableStatement Parameters: nameOfParameter - the name of the parameter throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameterNotPresent | public void verifyCallableStatementParameterNotPresent(String sql, String nameOfParameter)(Code) | | Verifies that a parameter with the specified index is not present.
Uses the first CallableStatement with the specified SQL.
Parameters: sql - the SQL statement of the CallableStatement Parameters: nameOfParameter - the name of the parameter throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameterNotPresent | public void verifyCallableStatementParameterNotPresent(int indexOfStatement, String nameOfParameter)(Code) | | Verifies that a parameter with the specified index is not present.
Parameters: indexOfStatement - the index of the statement Parameters: nameOfParameter - the name of the parameter throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameterPresent | public void verifyCallableStatementParameterPresent(CallableStatement statement, int indexOfParameter)(Code) | | Verifies that a parameter was added to a CallableStatement with
the specified index.
Parameters: statement - the CallableStatement Parameters: indexOfParameter - the index used to set the object throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameterPresent | public void verifyCallableStatementParameterPresent(String sql, int indexOfParameter)(Code) | | Verifies that a parameter was added to a CallableStatement with
the specified index. Uses the first CallableStatement with
the specified SQL.
Parameters: sql - the SQL statement of the CallableStatement Parameters: indexOfParameter - the index used to set the object throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameterPresent | public void verifyCallableStatementParameterPresent(int indexOfStatement, int indexOfParameter)(Code) | | Verifies that a parameter was added to a CallableStatement with
the specified index.
Parameters: indexOfStatement - the index of the statement Parameters: indexOfParameter - the index used to set the object throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameterPresent | public void verifyCallableStatementParameterPresent(CallableStatement statement, String nameOfParameter)(Code) | | Verifies that a parameter was added to a CallableStatement with
the specified index.
Parameters: statement - the CallableStatement Parameters: nameOfParameter - the name of the parameter throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameterPresent | public void verifyCallableStatementParameterPresent(String sql, String nameOfParameter)(Code) | | Verifies that a parameter was added to a CallableStatement with
the specified index. Uses the first CallableStatement with
the specified SQL.
Parameters: sql - the SQL statement of the CallableStatement Parameters: nameOfParameter - the name of the parameter throws: VerifyFailedException - if verification fails |
verifyCallableStatementParameterPresent | public void verifyCallableStatementParameterPresent(int indexOfStatement, String nameOfParameter)(Code) | | Verifies that a parameter was added to a CallableStatement with
the specified index.
Parameters: indexOfStatement - the index of the statement Parameters: nameOfParameter - the name of the parameter throws: VerifyFailedException - if verification fails |
verifyCallableStatementPresent | public void verifyCallableStatementPresent(String sql)(Code) | | Verifies that a CallableStatement with the specified
SQL statement is present.
Parameters: sql - the SQL statement throws: VerifyFailedException - if verification fails |
verifyCommitted | public void verifyCommitted()(Code) | | Verifies that the changes were commited, i.e. the commit
method of Connection was at least called once.
Makes only sense, if the Connection is not in
autocommit mode. Automatic commits are not recognized.
throws: VerifyFailedException - if verification fails |
verifyConnectionClosed | public void verifyConnectionClosed()(Code) | | Verifies that the connection is closed.
throws: VerifyFailedException - if verification fails |
verifyNotCommitted | public void verifyNotCommitted()(Code) | | Verifies that the changes were not commited.
Makes only sense, if the Connection is not in
autocommit mode. Automatic commits are not recognized.
throws: VerifyFailedException - if verification fails |
verifyNotRolledBack | public void verifyNotRolledBack()(Code) | | Verifies that the changes were not rolled back.
Makes only sense, if the Connection is not in
autocommit mode.
throws: VerifyFailedException - if verification fails |
verifyNumberCallableStatements | public void verifyNumberCallableStatements(int number)(Code) | | Verifies the number of callable statements.
Parameters: number - the expected number throws: VerifyFailedException - if verification fails |
verifyNumberCallableStatements | public void verifyNumberCallableStatements(int number, String sql)(Code) | | Verifies the number of callable statements with the specified
SQL.
Parameters: number - the expected number Parameters: sql - the SQL throws: VerifyFailedException - if verification fails |
verifyNumberCommits | public void verifyNumberCommits(int number)(Code) | | Verifies the number of commit calls.
Makes only sense, if the Connection is not in
autocommit mode.
Parameters: number - the expected number of commits throws: VerifyFailedException - if verification fails |
verifyNumberPreparedStatements | public void verifyNumberPreparedStatements(int number)(Code) | | Verifies the number of prepared statements.
Parameters: number - the expected number throws: VerifyFailedException - if verification fails |
verifyNumberPreparedStatements | public void verifyNumberPreparedStatements(int number, String sql)(Code) | | Verifies the number of prepared statements with the specified
SQL.
Parameters: number - the expected number Parameters: sql - the SQL throws: VerifyFailedException - if verification fails |
verifyNumberRollbacks | public void verifyNumberRollbacks(int number)(Code) | | Verifies the number of rollback calls.
Makes only sense, if the Connection is not in
autocommit mode.
Parameters: number - the expected number of rollbacks throws: VerifyFailedException - if verification fails |
verifyNumberStatements | public void verifyNumberStatements(int number)(Code) | | Verifies the number of statements.
Parameters: number - the expected number throws: VerifyFailedException - if verification fails |
verifyPreparedStatementClosed | public void verifyPreparedStatementClosed(int index)(Code) | | Verifies that a prepared statement is closed.
Parameters: index - the index of the prepared statement throws: VerifyFailedException - if verification fails |
verifyPreparedStatementClosed | public void verifyPreparedStatementClosed(String sql)(Code) | | Verifies that a prepared statement is closed.
Parameters: sql - the SQL statement throws: VerifyFailedException - if verification fails |
verifyPreparedStatementNotPresent | public void verifyPreparedStatementNotPresent(String sql)(Code) | | Verifies that a PreparedStatement with the specified
SQL statement is not present.
Parameters: sql - the SQL statement throws: VerifyFailedException - if verification fails |
verifyPreparedStatementParameter | public void verifyPreparedStatementParameter(PreparedStatement statement, int indexOfParameter, Object object)(Code) | | Verifies that a parameter from the specified PreparedStatement is equal
to the specified object. Please use the corresponding wrapper type for
primitive data types.
Parameters: statement - the PreparedStatement Parameters: indexOfParameter - the index used to set the object Parameters: object - the expected object throws: VerifyFailedException - if verification fails |
verifyPreparedStatementParameter | public void verifyPreparedStatementParameter(String sql, int indexOfParameter, Object object)(Code) | | Verifies that a parameter from the PreparedStatement with the
specified SQL statement is equal to the specified object.
Uses the first PreparedStatement with the specified SQL.
Please use the corresponding wrapper type for primitive data types.
Parameters: sql - the SQL statement of the PreparedStatement Parameters: indexOfParameter - the index used to set the object Parameters: object - the expected object throws: VerifyFailedException - if verification fails |
verifyPreparedStatementParameter | public void verifyPreparedStatementParameter(int indexOfStatement, int indexOfParameter, Object object)(Code) | | Verifies that a parameter from the PreparedStatement with the
specified SQL statement is equal to the specified object.
Please use the corresponding wrapper type for primitive data types.
Parameters: indexOfStatement - the index of the statement Parameters: indexOfParameter - the index used to set the object Parameters: object - the expected object throws: VerifyFailedException - if verification fails |
verifyPreparedStatementParameterNotPresent | public void verifyPreparedStatementParameterNotPresent(PreparedStatement statement, int indexOfParameter)(Code) | | Verifies that a parameter with the specified index is not present.
Parameters: statement - the PreparedStatement Parameters: indexOfParameter - the index used to set the object throws: VerifyFailedException - if verification fails |
verifyPreparedStatementParameterNotPresent | public void verifyPreparedStatementParameterNotPresent(String sql, int indexOfParameter)(Code) | | Verifies that a parameter with the specified index is not present.
Uses the first PreparedStatement with the specified SQL.
Parameters: sql - the SQL statement of the PreparedStatement Parameters: indexOfParameter - the index used to set the object throws: VerifyFailedException - if verification fails |
verifyPreparedStatementParameterNotPresent | public void verifyPreparedStatementParameterNotPresent(int indexOfStatement, int indexOfParameter)(Code) | | Verifies that a parameter with the specified index is not present.
Parameters: indexOfStatement - the index of the statement Parameters: indexOfParameter - the index used to set the object throws: VerifyFailedException - if verification fails |
verifyPreparedStatementParameterPresent | public void verifyPreparedStatementParameterPresent(PreparedStatement statement, int indexOfParameter)(Code) | | Verifies that a parameter was added to a PreparedStatement with
the specified index.
Parameters: statement - the PreparedStatement Parameters: indexOfParameter - the index used to set the object throws: VerifyFailedException - if verification fails |
verifyPreparedStatementParameterPresent | public void verifyPreparedStatementParameterPresent(String sql, int indexOfParameter)(Code) | | Verifies that a parameter was added to a PreparedStatement with
the specified index. Uses the first PreparedStatement with
the specified SQL.
Parameters: sql - the SQL statement of the PreparedStatement Parameters: indexOfParameter - the index used to set the object throws: VerifyFailedException - if verification fails |
verifyPreparedStatementParameterPresent | public void verifyPreparedStatementParameterPresent(int indexOfStatement, int indexOfParameter)(Code) | | Verifies that a parameter was added to a PreparedStatement with
the specified index.
Parameters: indexOfStatement - the index of the statement Parameters: indexOfParameter - the index used to set the object throws: VerifyFailedException - if verification fails |
verifyPreparedStatementPresent | public void verifyPreparedStatementPresent(String sql)(Code) | | Verifies that a PreparedStatement with the specified
SQL statement is present.
Parameters: sql - the SQL statement throws: VerifyFailedException - if verification fails |
verifyResultSetClosed | public void verifyResultSetClosed(String id)(Code) | | Verifies that the ResultSet with the
specified id is closed. Only recognizes ResultSet
objects that were actually returned when executing a statement
and that were explicitly closed. Implicit closed ResultSet
objects (when closing a statement) are not recognized.
throws: VerifyFailedException - if verification fails |
verifyResultSetColumn | public void verifyResultSetColumn(MockResultSet resultSet, int number, List columnData)(Code) | | Verifies that a column of a ResultSet is equal to the
entries in the specified List . Uses
com.mockrunner.mock.jdbc.MockResultSet.isColumnEqual(intList) .
You can verify the data of returned ResultSet objects if
the tested JDBC code makes updates.
Parameters: resultSet - the ResultSet Parameters: number - the number of the column Parameters: columnData - the column data throws: VerifyFailedException - if verification fails |
verifyResultSetColumn | public void verifyResultSetColumn(MockResultSet resultSet, int number, Object[] columnData)(Code) | | Verifies that a column of a ResultSet is equal to the
entries in the specified array. Uses
com.mockrunner.mock.jdbc.MockResultSet.isColumnEqual(intList) .
You can verify the data of returned ResultSet objects if
the tested JDBC code makes updates.
Parameters: resultSet - the ResultSet Parameters: number - the number of the column Parameters: columnData - the column data throws: VerifyFailedException - if verification fails |
verifyResultSetColumn | public void verifyResultSetColumn(String id, int number, List columnData)(Code) | | Verifies that a column of a ResultSet is equal to the
entries in the specified List . Uses
com.mockrunner.mock.jdbc.MockResultSet.isColumnEqual(intList) .
You can verify the data of returned ResultSet objects if
the tested JDBC code makes updates.
Parameters: id - the id of the ResultSet Parameters: number - the number of the column Parameters: columnData - the column data throws: VerifyFailedException - if verification fails |
verifyResultSetColumn | public void verifyResultSetColumn(String id, int number, Object[] columnData)(Code) | | Verifies that a column of a ResultSet is equal to the
entries in the specified array. Uses
com.mockrunner.mock.jdbc.MockResultSet.isColumnEqual(intList) .
You can verify the data of returned ResultSet objects if
the tested JDBC code makes updates.
Parameters: id - the id of the ResultSet Parameters: number - the number of the column Parameters: columnData - the column data throws: VerifyFailedException - if verification fails |
verifyResultSetRow | public void verifyResultSetRow(MockResultSet resultSet, int number, List rowData)(Code) | | Verifies that a row of a ResultSet is equal to the
entries in the specified List . Uses
com.mockrunner.mock.jdbc.MockResultSet.isRowEqual .
You can verify the data of returned ResultSet objects if
the tested JDBC code makes updates.
Parameters: resultSet - the ResultSet Parameters: number - the number of the row Parameters: rowData - the row data throws: VerifyFailedException - if verification fails |
verifyResultSetRow | public void verifyResultSetRow(MockResultSet resultSet, int number, Object[] rowData)(Code) | | Verifies that a row of a ResultSet is equal to the
entries in the specified array. Uses
com.mockrunner.mock.jdbc.MockResultSet.isRowEqual .
You can verify the data of returned ResultSet objects if
the tested JDBC code makes updates.
Parameters: resultSet - the ResultSet Parameters: number - the number of the row Parameters: rowData - the row data throws: VerifyFailedException - if verification fails |
verifyResultSetRow | public void verifyResultSetRow(String id, int number, List rowData)(Code) | | Verifies that a row of a ResultSet is equal to the
entries in the specified List . Uses
com.mockrunner.mock.jdbc.MockResultSet.isRowEqual .
You can verify the data of returned ResultSet objects if
the tested JDBC code makes updates.
Parameters: id - the id of the ResultSet Parameters: number - the number of the row Parameters: rowData - the row data throws: VerifyFailedException - if verification fails |
verifyResultSetRow | public void verifyResultSetRow(String id, int number, Object[] rowData)(Code) | | Verifies that a row of a ResultSet is equal to the
entries in the specified array. Uses
com.mockrunner.mock.jdbc.MockResultSet.isRowEqual .
You can verify the data of returned ResultSet objects if
the tested JDBC code makes updates.
Parameters: id - the id of the ResultSet Parameters: number - the number of the row Parameters: rowData - the row data throws: VerifyFailedException - if verification fails |
verifyResultSetRowDeleted | public void verifyResultSetRowDeleted(MockResultSet resultSet, int number)(Code) | | Verifies that the specified row of a ResultSet was
deleted.
Parameters: resultSet - the ResultSet Parameters: number - the number of the row throws: VerifyFailedException - if verification fails |
verifyResultSetRowDeleted | public void verifyResultSetRowDeleted(String id, int number)(Code) | | Verifies that the specified row of a ResultSet was
deleted.
Parameters: id - the id of the ResultSet Parameters: number - the number of the row throws: VerifyFailedException - if verification fails |
verifyResultSetRowInserted | public void verifyResultSetRowInserted(MockResultSet resultSet, int number)(Code) | | Verifies that the specified row of a ResultSet was
inserted.
Parameters: resultSet - the ResultSet Parameters: number - the number of the row throws: VerifyFailedException - if verification fails |
verifyResultSetRowInserted | public void verifyResultSetRowInserted(String id, int number)(Code) | | Verifies that the specified row of a ResultSet was
inserted.
Parameters: id - the id of the ResultSet Parameters: number - the number of the row throws: VerifyFailedException - if verification fails |
verifyResultSetRowNotDeleted | public void verifyResultSetRowNotDeleted(MockResultSet resultSet, int number)(Code) | | Verifies that the specified row of a ResultSet was
not deleted.
Parameters: resultSet - the ResultSet Parameters: number - the number of the row throws: VerifyFailedException - if verification fails |
verifyResultSetRowNotDeleted | public void verifyResultSetRowNotDeleted(String id, int number)(Code) | | Verifies that the specified row of a ResultSet was
not deleted.
Parameters: id - the id of the ResultSet Parameters: number - the number of the row throws: VerifyFailedException - if verification fails |
verifyResultSetRowNotInserted | public void verifyResultSetRowNotInserted(MockResultSet resultSet, int number)(Code) | | Verifies that the specified row of a ResultSet was
not inserted.
Parameters: resultSet - the ResultSet Parameters: number - the number of the row throws: VerifyFailedException - if verification fails |
verifyResultSetRowNotInserted | public void verifyResultSetRowNotInserted(String id, int number)(Code) | | Verifies that the specified row of a ResultSet was
not inserted.
Parameters: id - the id of the ResultSet Parameters: number - the number of the row throws: VerifyFailedException - if verification fails |
verifyResultSetRowNotUpdated | public void verifyResultSetRowNotUpdated(MockResultSet resultSet, int number)(Code) | | Verifies that the specified row of a ResultSet was
not updated.
Parameters: resultSet - the ResultSet Parameters: number - the number of the row throws: VerifyFailedException - if verification fails |
verifyResultSetRowNotUpdated | public void verifyResultSetRowNotUpdated(String id, int number)(Code) | | Verifies that the specified row of a ResultSet was
not updated.
Parameters: id - the id of the ResultSet Parameters: number - the number of the row throws: VerifyFailedException - if verification fails |
verifyResultSetRowUpdated | public void verifyResultSetRowUpdated(MockResultSet resultSet, int number)(Code) | | Verifies that the specified row of a ResultSet was
updated.
Parameters: resultSet - the ResultSet Parameters: number - the number of the row throws: VerifyFailedException - if verification fails |
verifyResultSetRowUpdated | public void verifyResultSetRowUpdated(String id, int number)(Code) | | Verifies that the specified row of a ResultSet was
updated.
Parameters: id - the id of the ResultSet Parameters: number - the number of the row throws: VerifyFailedException - if verification fails |
verifyRolledBack | public void verifyRolledBack()(Code) | | Verifies that the changes were rolled back, i.e. the rollback
method of Connection was at least called once.
Makes only sense, if the Connection is not in
autocommit mode.
throws: VerifyFailedException - if verification fails |
verifySQLStatementExecuted | public void verifySQLStatementExecuted(String sql)(Code) | | Verifies that an SQL statement was executed.
Parameters: sql - the expected SQL string throws: VerifyFailedException - if verification fails |
verifySQLStatementNotExecuted | public void verifySQLStatementNotExecuted(String sql)(Code) | | Verifies that an SQL statement was not executed.
Parameters: sql - the SQL string throws: VerifyFailedException - if verification fails |
verifySQLStatementParameter | public void verifySQLStatementParameter(String sql, int indexOfParameterSet, Map parameterMap)(Code) | | Verifies the parameters for the specified SQL statement.
If more than one SQL statement is found, this method uses the
first one. The parameter map must match in size and the
parameters must be equal (by comparing them with
{de.lv1871.util.ParameterUtil#compareParameter}).
You can specify the index of the parameter set. If
if a PreparedStatement or CallableStatement
is executed N times, it has N parameter sets. Each parameter set
can contain any number of parameters (possibly 0 parameters).
Ordinary statements do not have parameter sets, of course. If
the specified SQL has been executed by an ordinary statements,
a VerifyFailedException is thrown stating the reason.
Parameters: sql - the SQL string Parameters: indexOfParameterSet - the number of the parameter set Parameters: parameterMap - the map of expected parameters throws: VerifyFailedException - if verification fails |
verifySQLStatementParameter | public void verifySQLStatementParameter(String sql, int indexOfParameterSet, int indexOfParameter, Object expectedParameter)(Code) | | Verifies the parameter for the specified SQL statement.
If more than one SQL statement is found, this method uses the
first one.
You can specify the index of the parameter set. If
if a PreparedStatement or CallableStatement
is executed N times, it has N parameter sets. Each parameter set
can contain any number of parameters (possibly 0 parameters).
Ordinary statements do not have parameter sets, of course. If
the specified SQL has been executed by an ordinary statements,
a VerifyFailedException is thrown stating the reason.
Parameters: sql - the SQL string Parameters: indexOfParameterSet - the number of the parameter set Parameters: indexOfParameter - the index of the parameter Parameters: expectedParameter - the expected parameter throws: VerifyFailedException - if verification fails |
verifySQLStatementParameter | public void verifySQLStatementParameter(String sql, int indexOfParameterSet, String nameOfParameter, Object expectedParameter)(Code) | | Verifies the parameter for the specified SQL statement.
If more than one SQL statement is found, this method uses the
first one.
You can specify the index of the parameter set. If
if a PreparedStatement or CallableStatement
is executed N times, it has N parameter sets. Each parameter set
can contain any number of parameters (possibly 0 parameters).
Ordinary statements do not have parameter sets, of course. If
the specified SQL has been executed by an ordinary statements,
a VerifyFailedException is thrown stating the reason.
Parameters: sql - the SQL string Parameters: indexOfParameterSet - the number of the parameter set Parameters: nameOfParameter - the name of the parameter Parameters: expectedParameter - the expected parameter throws: VerifyFailedException - if verification fails |
verifySQLStatementParameterNumber | public void verifySQLStatementParameterNumber(String sql, int indexOfParameterSet, int number)(Code) | | Verifies the number of parameters for the specified SQL statement.
If more than one SQL statement is found, this method uses the
first one. You can specify the index of the parameter set. If
if a PreparedStatement or CallableStatement
is executed N times, it has N parameter sets. Each parameter set
can contain any number of parameters (possibly 0 parameters).
Ordinary statements do not have parameter sets, of course. If
the specified SQL has been executed by an ordinary statements,
a VerifyFailedException is thrown stating the reason.
Parameters: sql - the SQL string Parameters: indexOfParameterSet - the number of the parameter set Parameters: number - the expected number of parameters throws: VerifyFailedException - if verification fails |
verifyStatementClosed | public void verifyStatementClosed(int index)(Code) | | Verifies that a statement is closed.
Parameters: index - the index of the statement throws: VerifyFailedException - if verification fails |
|
|