Package mondrian.test
Class MondrianResultPrinter
- java.lang.Object
-
- mondrian.test.MondrianResultPrinter
-
public class MondrianResultPrinter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intfStarted(package private) PrintStreamfWriter
-
Constructor Summary
Constructors Constructor Description MondrianResultPrinter(PrintStream writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(Test test, Throwable t)voidaddFailure(Test test, AssertionFailedError t)protected StringelapsedTimeAsString(long runTime)Returns the formatted string of the elapsed time.voidendTest(Test test)PrintStreamgetWriter()(package private) voidprint(TestResult result, long runTime)voidprintDefect(TestFailure booBoo, int count)protected voidprintDefectHeader(TestFailure booBoo, int count)protected voidprintDefects(Enumeration booBoos, int count, String type)protected voidprintDefectTrace(TestFailure booBoo)protected voidprintErrors(TestResult result)protected voidprintFailures(TestResult result)protected voidprintFooter(long runTime, TestResult result)protected voidprintHeader()(package private) voidprintWaitPrompt()voidstartTest(Test test)
-
-
-
Field Detail
-
fWriter
PrintStream fWriter
-
fStarted
int fStarted
-
-
Constructor Detail
-
MondrianResultPrinter
public MondrianResultPrinter(PrintStream writer)
-
-
Method Detail
-
print
void print(TestResult result, long runTime)
-
printWaitPrompt
void printWaitPrompt()
-
printHeader
protected void printHeader()
-
printErrors
protected void printErrors(TestResult result)
-
printFailures
protected void printFailures(TestResult result)
-
printDefects
protected void printDefects(Enumeration booBoos, int count, String type)
-
printDefect
public void printDefect(TestFailure booBoo, int count)
-
printDefectHeader
protected void printDefectHeader(TestFailure booBoo, int count)
-
printDefectTrace
protected void printDefectTrace(TestFailure booBoo)
-
printFooter
protected void printFooter(long runTime, TestResult result)
-
elapsedTimeAsString
protected String elapsedTimeAsString(long runTime)
Returns the formatted string of the elapsed time. Duplicated from BaseTestRunner. Fix it.
-
getWriter
public PrintStream getWriter()
-
addError
public void addError(Test test, Throwable t)- See Also:
junit.framework.TestListener#addError(Test, Throwable)
-
addFailure
public void addFailure(Test test, AssertionFailedError t)- See Also:
junit.framework.TestListener#addFailure(Test, AssertionFailedError)
-
endTest
public void endTest(Test test)
- See Also:
junit.framework.TestListener#endTest(Test)
-
startTest
public void startTest(Test test)
- See Also:
junit.framework.TestListener#startTest(Test)
-
-