/** * Interface TestListener for JUnit <= 3.4. * * <p>A Test failed. * @param test the test. * @param t the exception. */ public void addFailure(Test test, Throwable t) { formatError("\tFAILED", test, t); }
/** * Interface TestListener. * * <p>An error occurred while running the test. * @param test the test. * @param t the exception. */ @Override public void addError(Test test, Throwable t) { formatError("\tCaused an ERROR", test, t); }