org.quilt.reports
Class SummaryFormatter

java.lang.Object
  |
  +--org.quilt.reports.SummaryFormatter
All Implemented Interfaces:
Formatter, junit.framework.TestListener

public class SummaryFormatter
extends java.lang.Object
implements Formatter


Constructor Summary
SummaryFormatter()
           
 
Method Summary
 void addError(junit.framework.Test test, java.lang.Throwable t)
          An unexpected error occurred.
 void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
          A failure occurred.
 void addFailure(junit.framework.Test test, java.lang.Throwable t)
          A failure occurred.
 void endTest(junit.framework.Test test)
          Called at end of JUnit test.
 void endTestSuite(QuiltTest qt)
          Called at the end of the Ant/Quilt test run.
 void setFiltertrace(boolean b)
          Enable filtering of Ant/Quilt/JUnit lines from stack traces.
 void setOutput(java.io.OutputStream out)
          Where to direct output.
 void setRunner(Runner testrunner)
          Select the runner to be used.
 void setSystemError(java.lang.String err)
          Where to send system error output.
 void setSystemOutput(java.lang.String out)
          Where to send standard output.
 void setWithOutAndErr(boolean value)
          Ant-compatible method determining whether System.out and System.err should be echoed to the summary report.
 void startTest(junit.framework.Test t)
          Called at beginning of JUnit test.
 void startTestSuite(QuiltTest suite)
          Called at start of Ant/Quilt test run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SummaryFormatter

public SummaryFormatter()
Method Detail

endTestSuite

public void endTestSuite(QuiltTest qt)
                  throws org.apache.tools.ant.BuildException
Called at the end of the Ant/Quilt test run.

Specified by:
endTestSuite in interface Formatter
org.apache.tools.ant.BuildException

setFiltertrace

public void setFiltertrace(boolean b)
Enable filtering of Ant/Quilt/JUnit lines from stack traces.

Specified by:
setFiltertrace in interface Formatter

setOutput

public void setOutput(java.io.OutputStream out)
Where to direct output.

Specified by:
setOutput in interface Formatter

setRunner

public void setRunner(Runner testrunner)
Select the runner to be used.

Specified by:
setRunner in interface Formatter

setSystemError

public void setSystemError(java.lang.String err)
Where to send system error output.

Specified by:
setSystemError in interface Formatter

setSystemOutput

public void setSystemOutput(java.lang.String out)
Where to send standard output.

Specified by:
setSystemOutput in interface Formatter

startTestSuite

public void startTestSuite(QuiltTest suite)
Called at start of Ant/Quilt test run.

Specified by:
startTestSuite in interface Formatter

addError

public void addError(junit.framework.Test test,
                     java.lang.Throwable t)
An unexpected error occurred.

Specified by:
addError in interface junit.framework.TestListener

addFailure

public void addFailure(junit.framework.Test test,
                       java.lang.Throwable t)
A failure occurred.


addFailure

public void addFailure(junit.framework.Test test,
                       junit.framework.AssertionFailedError t)
A failure occurred.

Specified by:
addFailure in interface junit.framework.TestListener

endTest

public void endTest(junit.framework.Test test)
Called at end of JUnit test.

Specified by:
endTest in interface junit.framework.TestListener

startTest

public void startTest(junit.framework.Test t)
Called at beginning of JUnit test.

Specified by:
startTest in interface junit.framework.TestListener

setWithOutAndErr

public void setWithOutAndErr(boolean value)
Ant-compatible method determining whether System.out and System.err should be echoed to the summary report.



Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.