Re: how to test the value of a variable in one method of a class which is not returned in the testcase(junit)?
Wednesday, April 4, 2007 10:05 AM
well that can't be possible. Logically speaking with out getting the connection and preparedstatement objects you will get a resultset object with a null value. And in the mean time if at all there is problem in getting the connection or PreparedStatement objects you will get an exception which will be caught in your application and placed in the log files which you can always see and say whether a testcase was passed/failed.