Package org.apache.ant.antunit
Interface AntUnitExecutionNotifier
- All Known Implementing Classes:
JUnitNotificationAdapter
public interface AntUnitExecutionNotifier
Provides methods that allow the AntUnitScriptRunner to notify the test progress.
- Since:
- 1.2
-
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.
-
Method Details
-
fireStartTest
invokes start on all registered test listeners.- Parameters:
targetName- the name of the target.
-
fireFail
invokes addFailure on all registered test listeners.- Parameters:
targetName- the name of the failed target.ae- the associated AssertionFailedException.
-
fireError
invokes addError on all registered test listeners.- Parameters:
targetName- the name of the failed target.t- the associated Throwable.
-
fireEndTest
invokes endTest on all registered test listeners.- Parameters:
targetName- the name of the current target.
-