Question #141111

im doing an assignment which i have to complete and perfect according to testers given. Some of the testers are failing but i cant see why that is since its not showing me what my methods are actually outputting. How can i see what my method is actually outputting?

Expert's answer

Unit testing of every method could let you figure out what is failing. Just have unit testing for every method to get to know what is causing failure.


  1. Mark a incomplete test, so it fails and warns, till end.
  2. Make sure to throw the exception.
try{
  // do stuff...
  fail("Exception not thrown");
}catch(Exception e){
  assertTrue(e.hasSomeFlag()
LATEST TUTORIALS
APPROVED BY CLIENTS