Suppose I have a method I want to test, without a return statement:
public void func(){
// some computing
// call another method: anotherFunc(par);
}
Is it possible to change this method to this:
public boolean func(){
// some computing
// call another method: anotherFunc(par);
return true;
}
If this method completes successfully, it returns true, otherwise false, to that a test would fail.