|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.momeunit.ant.event.TestEventListener
org.momeunit.ant.formatter.UnitResultFormatter
org.momeunit.ant.formatter.BriefUnitResultFormatter
public class BriefUnitResultFormatter
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.
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 |
---|
public BriefUnitResultFormatter()
Method Detail |
---|
public void startTestSuite(String name)
UnitResultFormatter
startTestSuite
in class UnitResultFormatter
name
- name of test suite that runs.public void endTestSuite() throws org.apache.tools.ant.BuildException
UnitResultFormatter
endTestSuite
in class UnitResultFormatter
org.apache.tools.ant.BuildException
public void addError(TestEvent event)
TestEventListener
addError
in class TestEventListener
event
- test event of error while executing test.public void addFailure(TestEvent event)
TestEventListener
addFailure
in class TestEventListener
event
- test event of test failure.public void endTest(TestEvent event)
TestEventListener
endTest
in class TestEventListener
event
- test event of end of test run.public void startTest(TestEvent event)
TestEventListener
startTest
in class TestEventListener
event
- test event of start of test run.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |