Package junit.textui
Class ResultPrinter
java.lang.Object
junit.textui.ResultPrinter
- All Implemented Interfaces:
TestListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAn error occurred.voidaddFailure(Test test, AssertionFailedError t) A failure occurred.protected StringelapsedTimeAsString(long runTime) Returns the formatted string of the elapsed time.voidA test ended.voidprintDefect(TestFailure booBoo, int count) protected voidprintDefectHeader(TestFailure booBoo, int count) protected voidprintDefects(Enumeration booBoos, int count, String type) protected voidprintDefectTrace(TestFailure booBoo) protected voidprintErrors(TestResult result) protected voidprintFailures(TestResult result) protected voidprintFooter(TestResult result) protected voidprintHeader(long runTime) voidA test started.
-
Constructor Details
-
ResultPrinter
-
-
Method Details
-
printHeader
protected void printHeader(long runTime) -
printErrors
-
printFailures
-
printDefects
-
printDefect
-
printDefectHeader
-
printDefectTrace
-
elapsedTimeAsString
Returns the formatted string of the elapsed time. Duplicated from BaseTestRunner. Fix it. -
getWriter
-
addError
Description copied from interface:TestListenerAn error occurred.- Specified by:
addErrorin interfaceTestListener- See Also:
-
addFailure
Description copied from interface:TestListenerA failure occurred.- Specified by:
addFailurein interfaceTestListener- See Also:
-
endTest
Description copied from interface:TestListenerA test ended.- Specified by:
endTestin interfaceTestListener- See Also:
-
startTest
Description copied from interface:TestListenerA test started.- Specified by:
startTestin interfaceTestListener- See Also:
-