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
Constructors Constructor Description UIMAResultPrinter(PrintStream writer, boolean abortOnFail, boolean teeOutputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addError(junit.framework.Test test, Throwable t)
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)
PrintStream
getWriter()
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 Detail
-
UIMAResultPrinter
public UIMAResultPrinter(PrintStream writer, boolean abortOnFail, boolean teeOutputStream)
-
-
Method Detail
-
printHeader
protected void printHeader(long runTime)
- Overrides:
printHeader
in classjunit.textui.ResultPrinter
- See Also:
ResultPrinter.printHeader(long)
-
printErrors
protected void printErrors(junit.framework.TestResult result)
- Overrides:
printErrors
in classjunit.textui.ResultPrinter
- See Also:
ResultPrinter.printErrors(junit.framework.TestResult)
-
printFailures
protected void printFailures(junit.framework.TestResult result)
- Overrides:
printFailures
in classjunit.textui.ResultPrinter
- See Also:
ResultPrinter.printFailures(junit.framework.TestResult)
-
printDefects
protected void printDefects(Enumeration booBoos, int count, String type)
- Overrides:
printDefects
in classjunit.textui.ResultPrinter
- See Also:
ResultPrinter.printDefects(java.util.Enumeration, int, java.lang.String)
-
printDefect
public void printDefect(junit.framework.TestFailure booBoo, int count)
- Overrides:
printDefect
in classjunit.textui.ResultPrinter
- See Also:
ResultPrinter.printDefect(junit.framework.TestFailure, int)
-
printDefectHeader
protected void printDefectHeader(junit.framework.TestFailure booBoo, int count)
- Overrides:
printDefectHeader
in classjunit.textui.ResultPrinter
- See Also:
ResultPrinter.printDefectHeader(junit.framework.TestFailure, int)
-
printDefectTrace
protected void printDefectTrace(junit.framework.TestFailure booBoo)
- Overrides:
printDefectTrace
in classjunit.textui.ResultPrinter
- See Also:
ResultPrinter.printDefectTrace(junit.framework.TestFailure)
-
printFooter
protected void printFooter(junit.framework.TestResult result)
- Overrides:
printFooter
in classjunit.textui.ResultPrinter
- See Also:
ResultPrinter.printFooter(junit.framework.TestResult)
-
elapsedTimeAsString
protected String elapsedTimeAsString(long runTime)
Returns the formatted string of the elapsed time. Duplicated from BaseTestRunner. Fix it.- Overrides:
elapsedTimeAsString
in classjunit.textui.ResultPrinter
-
getWriter
public PrintStream getWriter()
- Overrides:
getWriter
in classjunit.textui.ResultPrinter
- See Also:
ResultPrinter.getWriter()
-
addError
public void addError(junit.framework.Test test, Throwable t)
- Specified by:
addError
in interfacejunit.framework.TestListener
- Overrides:
addError
in classjunit.textui.ResultPrinter
- See Also:
TestListener.addError(Test, Throwable)
-
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:
TestListener.addFailure(Test, AssertionFailedError)
-
endTest
public void endTest(junit.framework.Test test)
- Specified by:
endTest
in interfacejunit.framework.TestListener
- Overrides:
endTest
in classjunit.textui.ResultPrinter
- See Also:
TestListener.endTest(Test)
-
startTest
public void startTest(junit.framework.Test test)
- Specified by:
startTest
in interfacejunit.framework.TestListener
- Overrides:
startTest
in classjunit.textui.ResultPrinter
- See Also:
TestListener.startTest(Test)
-
-