org.quilt.reports
Class PlainFormatter

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

public class PlainFormatter
extends BaseFormatter

Plain text output of JUnit test results.


Field Summary
 
Fields inherited from class org.quilt.reports.BaseFormatter
filtertrace, numberFormat, out, output, results, resultWriter, runner, systemError, systemOutput
 
Constructor Summary
PlainFormatter()
          No-arg constructor.
 
Method Summary
 void addError(junit.framework.Test test, java.lang.Throwable t)
          A test caused an unexpected error.
 void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
          A test failed.
 void addFailure(junit.framework.Test test, java.lang.Throwable t)
          A test failed.
 void endTest(junit.framework.Test test)
          Method called at end of test.
 void endTestSuite(QuiltTest qt)
          Called at end of Quilt/JUnit test run.
 void startTest(junit.framework.Test t)
          Method called at beginning of test.
 
Methods inherited from class org.quilt.reports.BaseFormatter
getTestName, setFiltertrace, setOutput, setRunner, setSystemError, setSystemOutput, startTestSuite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainFormatter

public PlainFormatter()
No-arg constructor.

Method Detail

endTestSuite

public void endTestSuite(QuiltTest qt)
                  throws org.apache.tools.ant.BuildException
Description copied from class: BaseFormatter
Called at end of Quilt/JUnit test run.

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

startTest

public void startTest(junit.framework.Test t)
Description copied from class: BaseFormatter
Method called at beginning of test.

Specified by:
startTest in interface junit.framework.TestListener
Overrides:
startTest in class BaseFormatter
Parameters:
t - JUnit Test (TestCase or TestSuite)

endTest

public void endTest(junit.framework.Test test)
Description copied from class: BaseFormatter
Method called at end of test.

Specified by:
endTest in interface junit.framework.TestListener
Overrides:
endTest in class BaseFormatter
Parameters:
test - JUnit Test (TestCase or TestSuite)

addFailure

public void addFailure(junit.framework.Test test,
                       java.lang.Throwable t)
Description copied from class: BaseFormatter
A test failed.

Overrides:
addFailure in class BaseFormatter

addFailure

public void addFailure(junit.framework.Test test,
                       junit.framework.AssertionFailedError t)
Description copied from class: BaseFormatter
A test failed.

Specified by:
addFailure in interface junit.framework.TestListener
Overrides:
addFailure in class BaseFormatter

addError

public void addError(junit.framework.Test test,
                     java.lang.Throwable t)
Description copied from class: BaseFormatter
A test caused an unexpected error.

Specified by:
addError in interface junit.framework.TestListener
Overrides:
addError in class BaseFormatter


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