mondrian.test
Class MondrianResultPrinter

java.lang.Object
  extended by mondrian.test.MondrianResultPrinter
All Implemented Interfaces:
junit.framework.TestListener

public class MondrianResultPrinter
extends Object
implements junit.framework.TestListener


Field Summary
(package private)  int fStarted
           
(package private)  PrintStream fWriter
           
 
Constructor Summary
MondrianResultPrinter(PrintStream writer)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fWriter

PrintStream fWriter

fStarted

int fStarted
Constructor Detail

MondrianResultPrinter

public MondrianResultPrinter(PrintStream writer)
Method Detail

print

void print(junit.framework.TestResult result,
           long runTime)

printWaitPrompt

void printWaitPrompt()

printHeader

protected void printHeader()

printErrors

protected void printErrors(junit.framework.TestResult result)

printFailures

protected void printFailures(junit.framework.TestResult result)

printDefects

protected void printDefects(Enumeration booBoos,
                            int count,
                            String type)

printDefect

public void printDefect(junit.framework.TestFailure booBoo,
                        int count)

printDefectHeader

protected void printDefectHeader(junit.framework.TestFailure booBoo,
                                 int count)

printDefectTrace

protected void printDefectTrace(junit.framework.TestFailure booBoo)

printFooter

protected void printFooter(long runTime,
                           junit.framework.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(junit.framework.Test test,
                     Throwable t)
Specified by:
addError in interface junit.framework.TestListener
See Also:
TestListener.addError(Test, Throwable)

addFailure

public void addFailure(junit.framework.Test test,
                       junit.framework.AssertionFailedError t)
Specified by:
addFailure in interface junit.framework.TestListener
See Also:
TestListener.addFailure(Test, AssertionFailedError)

endTest

public void endTest(junit.framework.Test test)
Specified by:
endTest in interface junit.framework.TestListener
See Also:
TestListener.endTest(Test)

startTest

public void startTest(junit.framework.Test test)
Specified by:
startTest in interface junit.framework.TestListener
See Also:
TestListener.startTest(Test)

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads