Package junit.textui
Class ResultPrinter
java.lang.Object
junit.textui.ResultPrinter
- All Implemented Interfaces:
TestListener
-
Field Summary
Fields -
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.(package private) voidprint(TestResult result, long runTime) voidprintDefect(TestFailure booBoo, int count) protected voidprintDefectHeader(TestFailure booBoo, int count) protected voidprintDefects(Enumeration<TestFailure> 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) (package private) voidvoidA test started.
-
Field Details
-
fWriter
PrintStream fWriter -
fColumn
int fColumn
-
-
Constructor Details
-
ResultPrinter
-
-
Method Details
-
print
-
printWaitPrompt
void printWaitPrompt() -
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:
-