AntUnitExecutionNotifier (ant-antunit API)
Description: declaration: package: org.apache.ant.antunit, interface: AntUnitExecutionNotifier

# Schnittstelle AntUnitExecutionNotifier

public interface AntUnitExecutionNotifier
Provides methods that allow the AntUnitScriptRunner to notify the test progress.

Seit:
  1.2

- ## Methodenübersicht

  Modifikator und Typ
  Methode
  Beschreibung
  `void`
  `fireEndTest(String targetName)`
  invokes endTest on all registered test listeners.
  `void`
  `fireError(String targetName, Throwable t)`
  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.

- ## Methodendetails

  - ### fireStartTest

    void fireStartTest(String targetName)
    invokes start on all registered test listeners.
    Parameter:
      `targetName` - the name of the target.

  - ### fireFail

    void fireFail(String targetName, AssertionFailedException ae)
    invokes addFailure on all registered test listeners.
    Parameter:
      `targetName` - the name of the failed target.
      `ae` - the associated AssertionFailedException.

  - ### fireError

    void fireError(String targetName, Throwable t)
    invokes addError on all registered test listeners.
    Parameter:
      `targetName` - the name of the failed target.
      `t` - the associated Throwable.

  - ### fireEndTest

    void fireEndTest(String targetName)
    invokes endTest on all registered test listeners.
    Parameter:
      `targetName` - the name of the current target.