Now the test is assumed to be failed only if methods .addInput, check return CheckResult object. This can be hard if checking goes deep into several methods (for example, parsing output) and encounteres that something is wrong. Since return statement can be made only in .addInput, check you actually need to write something like:
... deep into methods
throw new Exception(feedback);
...
... check method
List<Grid> grids;
try {
grids = Grid.parse(out);
} catch (Exception ex) {
return CheckResult.FALSE(ex.getMessage());
}
...
but with this issue implemented it can be something like this (less boilerplate):
... deep into methods
throw new FailTestError(feedback);
...
... check method
List<Grid> grids = Grid.parse(out);
...
Now the test is assumed to be failed only if methods
.addInput
,check
return CheckResult object. This can be hard if checking goes deep into several methods (for example, parsing output) and encounteres that something is wrong. Since return statement can be made only in.addInput
,check
you actually need to write something like:but with this issue implemented it can be something like this (less boilerplate):