Package org.apache.ant.antunit.junit3
Class JUnitNotificationAdapter
java.lang.Object
org.apache.ant.antunit.junit3.JUnitNotificationAdapter
- All Implemented Interfaces:
AntUnitExecutionNotifier
Adapt AntUnitExecutionNotifier events into JUnit3 TestResult events
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJUnitNotificationAdapter(junit.framework.TestResult testResult, Enumeration tests) -
Method Summary
Modifier and TypeMethodDescriptionvoidfireEndTest(String targetName) invokes endTest on all registered test listeners.voidinvokes addError on all registered test listeners.voidfireFail(String targetName, AssertionFailedException ae) invokes addFailure on all registered test listeners.voidfireStartTest(String targetName) invokes start on all registered test listeners.
-
Field Details
-
junitTestResult
private final junit.framework.TestResult junitTestResult -
testByTarget
-
-
Constructor Details
-
JUnitNotificationAdapter
-
-
Method Details
-
fireStartTest
Description copied from interface:AntUnitExecutionNotifierinvokes start on all registered test listeners.- Specified by:
fireStartTestin interfaceAntUnitExecutionNotifier- Parameters:
targetName- the name of the target.
-
fireEndTest
Description copied from interface:AntUnitExecutionNotifierinvokes endTest on all registered test listeners.- Specified by:
fireEndTestin interfaceAntUnitExecutionNotifier- Parameters:
targetName- the name of the current target.
-
fireError
Description copied from interface:AntUnitExecutionNotifierinvokes addError on all registered test listeners.- Specified by:
fireErrorin interfaceAntUnitExecutionNotifier- Parameters:
targetName- the name of the failed target.t- the associated Throwable.
-
fireFail
Description copied from interface:AntUnitExecutionNotifierinvokes addFailure on all registered test listeners.- Specified by:
fireFailin interfaceAntUnitExecutionNotifier- Parameters:
targetName- the name of the failed target.ae- the associated AssertionFailedException.
-