Class UIMAResultPrinter
java.lang.Object
junit.textui.ResultPrinter
org.apache.uima.test.junit_extension.UIMAResultPrinter
- All Implemented Interfaces:
junit.framework.TestListener
public class UIMAResultPrinter
extends junit.textui.ResultPrinter
implements junit.framework.TestListener
UIMAResultPrinter is a ResultPrinter extension for the JUnit framework.
-
Constructor Summary
ConstructorDescriptionUIMAResultPrinter
(PrintStream writer, boolean abortOnFail, boolean teeOutputStream) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addFailure
(junit.framework.Test test, junit.framework.AssertionFailedError t) protected String
elapsedTimeAsString
(long runTime) Returns the formatted string of the elapsed time.void
endTest
(junit.framework.Test test) void
printDefect
(junit.framework.TestFailure booBoo, int count) protected void
printDefectHeader
(junit.framework.TestFailure booBoo, int count) protected void
printDefects
(Enumeration booBoos, int count, String type) protected void
printDefectTrace
(junit.framework.TestFailure booBoo) protected void
printErrors
(junit.framework.TestResult result) protected void
printFailures
(junit.framework.TestResult result) protected void
printFooter
(junit.framework.TestResult result) protected void
printHeader
(long runTime) void
startTest
(junit.framework.Test test)
-
Constructor Details
-
UIMAResultPrinter
-
-
Method Details
-
printHeader
protected void printHeader(long runTime) - Overrides:
printHeader
in classjunit.textui.ResultPrinter
- See Also:
-
printErrors
protected void printErrors(junit.framework.TestResult result) - Overrides:
printErrors
in classjunit.textui.ResultPrinter
- See Also:
-
printFailures
protected void printFailures(junit.framework.TestResult result) - Overrides:
printFailures
in classjunit.textui.ResultPrinter
- See Also:
-
printDefects
- Overrides:
printDefects
in classjunit.textui.ResultPrinter
- See Also:
-
printDefect
public void printDefect(junit.framework.TestFailure booBoo, int count) - Overrides:
printDefect
in classjunit.textui.ResultPrinter
- See Also:
-
printDefectHeader
protected void printDefectHeader(junit.framework.TestFailure booBoo, int count) - Overrides:
printDefectHeader
in classjunit.textui.ResultPrinter
- See Also:
-
printDefectTrace
protected void printDefectTrace(junit.framework.TestFailure booBoo) - Overrides:
printDefectTrace
in classjunit.textui.ResultPrinter
- See Also:
-
elapsedTimeAsString
Returns the formatted string of the elapsed time. Duplicated from BaseTestRunner. Fix it.- Overrides:
elapsedTimeAsString
in classjunit.textui.ResultPrinter
-
getWriter
- Overrides:
getWriter
in classjunit.textui.ResultPrinter
- See Also:
-
addError
- Specified by:
addError
in interfacejunit.framework.TestListener
- Overrides:
addError
in classjunit.textui.ResultPrinter
- See Also:
-
addFailure
public void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t) - Specified by:
addFailure
in interfacejunit.framework.TestListener
- Overrides:
addFailure
in classjunit.textui.ResultPrinter
- See Also:
-
endTest
public void endTest(junit.framework.Test test) - Specified by:
endTest
in interfacejunit.framework.TestListener
- Overrides:
endTest
in classjunit.textui.ResultPrinter
- See Also:
-
startTest
public void startTest(junit.framework.Test test) - Specified by:
startTest
in interfacejunit.framework.TestListener
- Overrides:
startTest
in classjunit.textui.ResultPrinter
- See Also:
-