org.momeunit.ant.formatter
Class BriefUnitResultFormatter

java.lang.Object
  extended by org.momeunit.ant.event.TestEventListener
      extended by org.momeunit.ant.formatter.UnitResultFormatter
          extended by org.momeunit.ant.formatter.BriefUnitResultFormatter

public class BriefUnitResultFormatter
extends UnitResultFormatter

Predefined brief formatter. Generates report of plain text. It resembles functionality of it's <junit> analog and prints only detailed information for test cases that failed.

Version:
1.1.2
Author:
Sergio Morozov

Field Summary
 
Fields inherited from class org.momeunit.ant.formatter.UnitResultFormatter
DEFAULT_ENCODING
 
Constructor Summary
BriefUnitResultFormatter()
           
 
Method Summary
 void addError(TestEvent event)
          Callback method that indicates an error while executing test.
 void addFailure(TestEvent event)
          Callback method that indicates test failure.
 void endTest(TestEvent event)
          Callback method that indicates the end of test run.
 void endTestSuite()
          Callback method that indicates the end of tests run.
 void startTest(TestEvent event)
          Callback method that indicates the start of test run.
 void startTestSuite(String name)
          Callback method that indicates the start of tests run.
 
Methods inherited from class org.momeunit.ant.formatter.UnitResultFormatter
filterStackTrace, getEncoding, getOutput, getSystemError, getSystemOutput, getTestSuiteName, isFilterTrace, setEncoding, setFilterTrace, setOutput, setSystemError, setSystemOutput
 
Methods inherited from class org.momeunit.ant.event.TestEventListener
onEvevnt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BriefUnitResultFormatter

public BriefUnitResultFormatter()
Method Detail

startTestSuite

public void startTestSuite(String name)
Description copied from class: UnitResultFormatter
Callback method that indicates the start of tests run.

Overrides:
startTestSuite in class UnitResultFormatter
Parameters:
name - name of test suite that runs.

endTestSuite

public void endTestSuite()
                  throws org.apache.tools.ant.BuildException
Description copied from class: UnitResultFormatter
Callback method that indicates the end of tests run.

Overrides:
endTestSuite in class UnitResultFormatter
Throws:
org.apache.tools.ant.BuildException

addError

public void addError(TestEvent event)
Description copied from class: TestEventListener
Callback method that indicates an error while executing test.

Specified by:
addError in class TestEventListener
Parameters:
event - test event of error while executing test.

addFailure

public void addFailure(TestEvent event)
Description copied from class: TestEventListener
Callback method that indicates test failure.

Specified by:
addFailure in class TestEventListener
Parameters:
event - test event of test failure.

endTest

public void endTest(TestEvent event)
Description copied from class: TestEventListener
Callback method that indicates the end of test run.

Specified by:
endTest in class TestEventListener
Parameters:
event - test event of end of test run.

startTest

public void startTest(TestEvent event)
Description copied from class: TestEventListener
Callback method that indicates the start of test run.

Specified by:
startTest in class TestEventListener
Parameters:
event - test event of start of test run.