/** * Verifies that a callable statement is closed. * @param sql the SQL statement * @throws VerifyFailedException if verification fails */ public void verifyCallableStatementClosed(String sql) { MockCallableStatement statement = getCallableStatement(sql); if(null == statement) { throw new VerifyFailedException("No callable statement with SQL " + sql + " present."); } if(!statement.isClosed()) { throw new VerifyFailedException("Callable statement with SQL " + sql + " not closed."); } }
/** * Verifies that a callable statement is closed. * @param index the index of the callable statement * @throws VerifyFailedException if verification fails */ public void verifyCallableStatementClosed(int index) { MockCallableStatement statement = getCallableStatement(index); if(null == statement) { throw new VerifyFailedException("No callable statement with index " + index + " present."); } if(!statement.isClosed()) { throw new VerifyFailedException("Callable statement with index " + index + " not closed."); } }
/** * Verifies that a callable statement is closed. * @param sql the SQL statement * @throws VerifyFailedException if verification fails */ public void verifyCallableStatementClosed(String sql) { MockCallableStatement statement = getCallableStatement(sql); if(null == statement) { throw new VerifyFailedException("No callable statement with SQL " + sql + " present."); } if(!statement.isClosed()) { throw new VerifyFailedException("Callable statement with SQL " + sql + " not closed."); } }
/** * Verifies that a callable statement is closed. * @param sql the SQL statement * @throws VerifyFailedException if verification fails */ public void verifyCallableStatementClosed(String sql) { MockCallableStatement statement = getCallableStatement(sql); if(null == statement) { throw new VerifyFailedException("No callable statement with SQL " + sql + " present."); } if(!statement.isClosed()) { throw new VerifyFailedException("Callable statement with SQL " + sql + " not closed."); } }
/** * Verifies that a callable statement is closed. * @param index the index of the callable statement * @throws VerifyFailedException if verification fails */ public void verifyCallableStatementClosed(int index) { MockCallableStatement statement = getCallableStatement(index); if(null == statement) { throw new VerifyFailedException("No callable statement with index " + index + " present."); } if(!statement.isClosed()) { throw new VerifyFailedException("Callable statement with index " + index + " not closed."); } }
/** * Verifies that a callable statement is closed. * @param index the index of the callable statement * @throws VerifyFailedException if verification fails */ public void verifyCallableStatementClosed(int index) { MockCallableStatement statement = getCallableStatement(index); if(null == statement) { throw new VerifyFailedException("No callable statement with index " + index + " present."); } if(!statement.isClosed()) { throw new VerifyFailedException("Callable statement with index " + index + " not closed."); } }
if(!callableStatement.isClosed())