@Override public boolean equals(Object obj) { return obj == this || obj instanceof TestInfos && toString().equals(obj.toString()); }
@Override public int hashCode() { return toString().hashCode(); } }
/** * Add the failed test to the list. * @param test the test that erred. * @param throwable the reason it erred. * @see junit.framework.TestListener#addError(junit.framework.Test, java.lang.Throwable) */ @Override public void addError(Test test, Throwable throwable) { failedTests.add(new TestInfos(test)); }
/** * Add the failed test to the list. * @param test the test that failed. * @param error the assertion that failed. * @see junit.framework.TestListener#addFailure(junit.framework.Test, junit.framework.AssertionFailedError) */ // CheckStyle:LineLengthCheck ON @Override public void addFailure(Test test, AssertionFailedError error) { failedTests.add(new TestInfos(test)); }