|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.textui.ResultPrinter
public class ResultPrinter
Field Summary | |
---|---|
(package private) int |
fColumn
|
(package private) PrintStream |
fWriter
|
Constructor Summary | |
---|---|
ResultPrinter(PrintStream writer)
|
Method Summary | |
---|---|
void |
addError(Test test,
Throwable t)
An error occurred. |
void |
addFailure(Test test,
AssertionFailedError t)
A failure occurred. |
protected String |
elapsedTimeAsString(long runTime)
Returns the formatted string of the elapsed time. |
void |
endTest(Test test)
A test ended. |
PrintStream |
getWriter()
|
(package private) void |
print(TestResult result,
long runTime)
|
void |
printDefect(TestFailure booBoo,
int count)
|
protected void |
printDefectHeader(TestFailure booBoo,
int count)
|
protected void |
printDefects(Enumeration booBoos,
int count,
String type)
|
protected void |
printDefectTrace(TestFailure booBoo)
|
protected void |
printErrors(TestResult result)
|
protected void |
printFailures(TestResult result)
|
protected void |
printFooter(TestResult result)
|
protected void |
printHeader(long runTime)
|
(package private) void |
printWaitPrompt()
|
void |
startTest(Test test)
A test started. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
PrintStream fWriter
int fColumn
Constructor Detail |
---|
public ResultPrinter(PrintStream writer)
Method Detail |
---|
void print(TestResult result, long runTime)
void printWaitPrompt()
protected void printHeader(long runTime)
protected void printErrors(TestResult result)
protected void printFailures(TestResult result)
protected void printDefects(Enumeration booBoos, int count, String type)
public void printDefect(TestFailure booBoo, int count)
protected void printDefectHeader(TestFailure booBoo, int count)
protected void printDefectTrace(TestFailure booBoo)
protected void printFooter(TestResult result)
protected String elapsedTimeAsString(long runTime)
public PrintStream getWriter()
public void addError(Test test, Throwable t)
TestListener
addError
in interface TestListener
TestListener.addError(Test, Throwable)
public void addFailure(Test test, AssertionFailedError t)
TestListener
addFailure
in interface TestListener
TestListener.addFailure(Test, AssertionFailedError)
public void endTest(Test test)
TestListener
endTest
in interface TestListener
TestListener.endTest(Test)
public void startTest(Test test)
TestListener
startTest
in interface TestListener
TestListener.startTest(Test)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |