public class MondrianResultPrinter extends Object implements junit.framework.TestListener
Modifier and Type | Field and Description |
---|---|
(package private) int |
fStarted |
(package private) PrintStream |
fWriter |
Constructor and Description |
---|
MondrianResultPrinter(PrintStream writer) |
Modifier and Type | Method and 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() |
(package private) void |
print(junit.framework.TestResult result,
long runTime) |
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(long runTime,
junit.framework.TestResult result) |
protected void |
printHeader() |
(package private) void |
printWaitPrompt() |
void |
startTest(junit.framework.Test test) |
PrintStream fWriter
int fStarted
public MondrianResultPrinter(PrintStream writer)
void print(junit.framework.TestResult result, long runTime)
void printWaitPrompt()
protected void printHeader()
protected void printErrors(junit.framework.TestResult result)
protected void printFailures(junit.framework.TestResult result)
protected void printDefects(Enumeration booBoos, int count, String type)
public void printDefect(junit.framework.TestFailure booBoo, int count)
protected void printDefectHeader(junit.framework.TestFailure booBoo, int count)
protected void printDefectTrace(junit.framework.TestFailure booBoo)
protected void printFooter(long runTime, junit.framework.TestResult result)
protected String elapsedTimeAsString(long runTime)
public PrintStream getWriter()
public void addError(junit.framework.Test test, Throwable t)
addError
in interface junit.framework.TestListener
TestListener.addError(Test, Throwable)
public void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
addFailure
in interface junit.framework.TestListener
TestListener.addFailure(Test, AssertionFailedError)
public void endTest(junit.framework.Test test)
endTest
in interface junit.framework.TestListener
TestListener.endTest(Test)
public void startTest(junit.framework.Test test)
startTest
in interface junit.framework.TestListener
TestListener.startTest(Test)