Re: How do i test a method which returns NullPointerException to my JUnit testCase below:
Wednesday, April 30, 2003 07:56 AM
From this I assum you want a null pointerexception to be thrown. If this is true I would test as follows.
boolean result = false;
test methods ..
result = true;
hope this helps pete.