|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.textui.ResultPrinter
org.apache.qpid.junit.extensions.NullResultPrinter
public class NullResultPrinter
A ResultPrinter that prints nothing. This exists, in order to provide a replacement to JUnit's ResultPrinter, which is refered to directly by JUnit code, rather that as an abstracted TestListener. JUnit's text ui TestRunner must have a ResultPrinter. This provides an implementation of it that prints nothing, so that a better mechanism can be used for providing feedback to the console instead.
Responsibilities | Collaborations |
---|---|
Constructor Summary | |
---|---|
NullResultPrinter(PrintStream writer)
Builds a fake ResultPrinter that prints nothing. |
Method Summary | |
---|---|
void |
addError(junit.framework.Test test,
Throwable t)
Does nothing. |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
Does nothing. |
void |
endTest(junit.framework.Test test)
Does nothing. |
void |
startTest(junit.framework.Test test)
Does nothing. |
Methods inherited from class junit.textui.ResultPrinter |
---|
elapsedTimeAsString, getWriter, printDefect, printDefectHeader, printDefects, printDefectTrace, printErrors, printFailures, printFooter, printHeader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullResultPrinter(PrintStream writer)
writer
- The writer to send output to.Method Detail |
---|
public void addError(junit.framework.Test test, Throwable t)
addError
in interface junit.framework.TestListener
addError
in class junit.textui.ResultPrinter
test
- Ignored.t
- Ignored.public void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
addFailure
in interface junit.framework.TestListener
addFailure
in class junit.textui.ResultPrinter
test
- Ignored.t
- Ignored.public void endTest(junit.framework.Test test)
endTest
in interface junit.framework.TestListener
endTest
in class junit.textui.ResultPrinter
test
- Ignored.public void startTest(junit.framework.Test test)
startTest
in interface junit.framework.TestListener
startTest
in class junit.textui.ResultPrinter
test
- Ignored.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |