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 TypeMethodDescriptionvoid
fireEndTest
(String targetName) invokes endTest on all registered test listeners.void
invokes addError on all registered test listeners.void
fireFail
(String targetName, AssertionFailedException ae) invokes addFailure on all registered test listeners.void
fireStartTest
(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:AntUnitExecutionNotifier
invokes start on all registered test listeners.- Specified by:
fireStartTest
in interfaceAntUnitExecutionNotifier
- Parameters:
targetName
- the name of the target.
-
fireEndTest
Description copied from interface:AntUnitExecutionNotifier
invokes endTest on all registered test listeners.- Specified by:
fireEndTest
in interfaceAntUnitExecutionNotifier
- Parameters:
targetName
- the name of the current target.
-
fireError
Description copied from interface:AntUnitExecutionNotifier
invokes addError on all registered test listeners.- Specified by:
fireError
in interfaceAntUnitExecutionNotifier
- Parameters:
targetName
- the name of the failed target.t
- the associated Throwable.
-
fireFail
Description copied from interface:AntUnitExecutionNotifier
invokes addFailure on all registered test listeners.- Specified by:
fireFail
in interfaceAntUnitExecutionNotifier
- Parameters:
targetName
- the name of the failed target.ae
- the associated AssertionFailedException.
-