|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.junit4osgi.impl.ResultPrinter
public class ResultPrinter
Result Printer.
Constructor Summary | |
---|---|
ResultPrinter(PrintStream writer)
Creates a ResultPrinter. |
Method Summary | |
---|---|
void |
addError(junit.framework.Test test,
Throwable t)
Adds an error. |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
Adds a failure. |
protected String |
elapsedTimeAsString(long runTime)
Returns the formatted string of the elapsed time. |
void |
endTest(junit.framework.Test test)
A test ends. |
PrintStream |
getWriter()
|
void |
printDefect(junit.framework.TestFailure booBoo,
int count)
Prints a failure. |
protected void |
printDefectHeader(junit.framework.TestFailure booBoo,
int count)
Prints defect header. |
protected void |
printDefects(Enumeration booBoos,
int count,
String type)
Prints failures. |
protected void |
printDefectTrace(junit.framework.TestFailure booBoo)
Prints the stack trace. |
protected void |
printErrors(junit.framework.TestResult result)
Prints the errors. |
protected void |
printFailures(junit.framework.TestResult result)
Prints failures. |
protected void |
printFooter(junit.framework.TestResult result)
Prints the footer. |
protected void |
printHeader(long runTime)
Prints the result header. |
void |
startTest(junit.framework.Test test)
A test starts. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultPrinter(PrintStream writer)
writer
- the printerMethod Detail |
---|
protected void printHeader(long runTime)
runTime
- the test execution durationprotected void printErrors(junit.framework.TestResult result)
result
- the test resultprotected void printFailures(junit.framework.TestResult result)
result
- the test resultprotected void printDefects(Enumeration booBoos, int count, String type)
booBoos
- the failurescount
- the number of failurestype
- the typepublic void printDefect(junit.framework.TestFailure booBoo, int count)
booBoo
- the failurecount
- the countprotected void printDefectHeader(junit.framework.TestFailure booBoo, int count)
booBoo
- the failurecount
- the countprotected void printDefectTrace(junit.framework.TestFailure booBoo)
booBoo
- the failureprotected void printFooter(junit.framework.TestResult result)
result
- the test result.protected String elapsedTimeAsString(long runTime)
runTime
- the elapsed time
public PrintStream getWriter()
public void addError(junit.framework.Test test, Throwable t)
addError
in interface junit.framework.TestListener
test
- the test in error.t
- the thrown errorTestListener.addError(Test, Throwable)
public void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
addFailure
in interface junit.framework.TestListener
test
- the failing test.t
- the thrown failureTestListener.addFailure(Test, AssertionFailedError)
public void endTest(junit.framework.Test test)
endTest
in interface junit.framework.TestListener
test
- the ending testTestListener.endTest(Test)
public void startTest(junit.framework.Test test)
startTest
in interface junit.framework.TestListener
test
- the starting testTestListener.startTest(Test)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |