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 TypeMethodDescriptionvoid
An error occurred.void
addFailure
(Test test, AssertionFailedError t) A failure occurred.protected String
elapsedTimeAsString
(long runTime) Returns the formatted string of the elapsed time.void
A test ended.(package private) void
print
(TestResult result, long runTime) void
printDefect
(TestFailure booBoo, int count) protected void
printDefectHeader
(TestFailure booBoo, int count) protected void
printDefects
(Enumeration<TestFailure> booBoos, int count, String type) protected void
printDefectTrace
(TestFailure booBoo) protected void
printErrors
(TestResult result) protected void
printFailures
(TestResult result) protected void
printFooter
(TestResult result) protected void
printHeader
(long runTime) (package private) void
void
A 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:TestListener
An error occurred.- Specified by:
addError
in interfaceTestListener
- See Also:
-
addFailure
Description copied from interface:TestListener
A failure occurred.- Specified by:
addFailure
in interfaceTestListener
- See Also:
-
endTest
Description copied from interface:TestListener
A test ended.- Specified by:
endTest
in interfaceTestListener
- See Also:
-
startTest
Description copied from interface:TestListener
A test started.- Specified by:
startTest
in interfaceTestListener
- See Also:
-