org.apache.uima.test.junit_extension
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 |
UIMAResultPrinter(java.io.PrintStream writer,
boolean abortOnFail,
boolean teeOutputStream)
|
Method Summary |
void |
addError(junit.framework.Test test,
java.lang.Throwable t)
|
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
|
protected java.lang.String |
elapsedTimeAsString(long runTime)
Returns the formatted string of the elapsed time. |
void |
endTest(junit.framework.Test test)
|
java.io.PrintStream |
getWriter()
|
void |
printDefect(junit.framework.TestFailure booBoo,
int count)
|
protected void |
printDefectHeader(junit.framework.TestFailure booBoo,
int count)
|
protected void |
printDefects(java.util.Enumeration booBoos,
int count,
java.lang.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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UIMAResultPrinter
public UIMAResultPrinter(java.io.PrintStream writer,
boolean abortOnFail,
boolean teeOutputStream)
printHeader
protected void printHeader(long runTime)
- Overrides:
printHeader
in class junit.textui.ResultPrinter
- See Also:
ResultPrinter.printHeader(long)
printErrors
protected void printErrors(junit.framework.TestResult result)
- Overrides:
printErrors
in class junit.textui.ResultPrinter
- See Also:
ResultPrinter.printErrors(junit.framework.TestResult)
printFailures
protected void printFailures(junit.framework.TestResult result)
- Overrides:
printFailures
in class junit.textui.ResultPrinter
- See Also:
ResultPrinter.printFailures(junit.framework.TestResult)
printDefects
protected void printDefects(java.util.Enumeration booBoos,
int count,
java.lang.String type)
- Overrides:
printDefects
in class junit.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 class junit.textui.ResultPrinter
- See Also:
ResultPrinter.printDefect(junit.framework.TestFailure, int)
printDefectHeader
protected void printDefectHeader(junit.framework.TestFailure booBoo,
int count)
- Overrides:
printDefectHeader
in class junit.textui.ResultPrinter
- See Also:
ResultPrinter.printDefectHeader(junit.framework.TestFailure, int)
printDefectTrace
protected void printDefectTrace(junit.framework.TestFailure booBoo)
- Overrides:
printDefectTrace
in class junit.textui.ResultPrinter
- See Also:
ResultPrinter.printDefectTrace(junit.framework.TestFailure)
printFooter
protected void printFooter(junit.framework.TestResult result)
- Overrides:
printFooter
in class junit.textui.ResultPrinter
- See Also:
ResultPrinter.printFooter(junit.framework.TestResult)
elapsedTimeAsString
protected java.lang.String elapsedTimeAsString(long runTime)
- Returns the formatted string of the elapsed time. Duplicated from BaseTestRunner. Fix it.
- Overrides:
elapsedTimeAsString
in class junit.textui.ResultPrinter
getWriter
public java.io.PrintStream getWriter()
- Overrides:
getWriter
in class junit.textui.ResultPrinter
- See Also:
ResultPrinter.getWriter()
addError
public void addError(junit.framework.Test test,
java.lang.Throwable t)
- Specified by:
addError
in interface junit.framework.TestListener
- Overrides:
addError
in class junit.textui.ResultPrinter
- See Also:
TestListener.addError(Test, Throwable)
addFailure
public void addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
- Specified by:
addFailure
in interface junit.framework.TestListener
- Overrides:
addFailure
in class junit.textui.ResultPrinter
- See Also:
TestListener.addFailure(Test, AssertionFailedError)
endTest
public void endTest(junit.framework.Test test)
- Specified by:
endTest
in interface junit.framework.TestListener
- Overrides:
endTest
in class junit.textui.ResultPrinter
- See Also:
TestListener.endTest(Test)
startTest
public void startTest(junit.framework.Test test)
- Specified by:
startTest
in interface junit.framework.TestListener
- Overrides:
startTest
in class junit.textui.ResultPrinter
- See Also:
TestListener.startTest(Test)
Copyright © 2012. All Rights Reserved.