return statusFor(error);
}
// for better JUnit compatibility, e.g when a @Rule is used
private int handleMultipleFailures(ErrorInfo error) {
MultipleFailureException multiFailure = (MultipleFailureException) error.getException();
int runStatus = OK;
for (Throwable failure : multiFailure.getFailures())
runStatus = error(new ErrorInfo(error.getMethod(), failure));
return runStatus;
}