NPE when verifying a null parameter
Brought to you by:
ivan_r_moore,
mpcooke3
I'm getting a NPE instead of a VerifyFailedException using:
verifyCallableStatementParameter(PROCEDURE_NAME, 3, null);
The problem is that you are using "object.toString()" to build the message for the VerifyFailedException (and object is null)
I'm using mockrunner 0.4
The stacktrace:
java.lang.NullPointerException
at com.mockrunner.jdbc.JDBCTestModule.verifyCallableStatementParameter(JDBCTestModule.java:2073)
at com.mockrunner.jdbc.BasicJDBCTestCaseAdapter.verifyCallableStatementParameter(BasicJDBCTestCaseAdapter.java:1055)
Thanks a lot.