Klasse LogForwarder
java.lang.Object
org.apache.ant.antunit.listener.LogForwarder
- Alle implementierten Schnittstellen:
AntUnitListener
A test listener for <antunit> who's whole purpose is to
forward log output from the project under test to the project
executing the <antunit> task.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidInvoked if any error other than a failed assertion occured during execution.voidaddFailure(String target, AssertionFailedException ae) Invoked if an assert tasked caused an error during execution.voidInvoked after a test target has been executed.voidendTestSuite(org.apache.tools.ant.Project testProject, String buildFile) Invoked once per build file, after all targets have been executed.voidsetCurrentTestProject(org.apache.tools.ant.Project p) Set a reference to the Project instance currently executing the test target.voidsetParentTask(org.apache.tools.ant.Task t) Set a reference to the AntUnit task executing the tests, this provides access to the containing project, target or Ant's logging system.voidInvoked before a test target gets executed.voidstartTestSuite(org.apache.tools.ant.Project testProject, String buildFile) Invoked once per build file, before any targets get executed.
-
Konstruktordetails
-
LogForwarder
public LogForwarder()
-
-
Methodendetails
-
setParentTask
public void setParentTask(org.apache.tools.ant.Task t) Beschreibung aus Schnittstelle kopiert:AntUnitListenerSet a reference to the AntUnit task executing the tests, this provides access to the containing project, target or Ant's logging system.- Angegeben von:
setParentTaskin SchnittstelleAntUnitListener- Parameter:
t- the parent task
-
setCurrentTestProject
public void setCurrentTestProject(org.apache.tools.ant.Project p) Beschreibung aus Schnittstelle kopiert:AntUnitListenerSet a reference to the Project instance currently executing the test target.This provides access to the logging system or the properties of the project under test. Note that different test targets will be executed in different Ant Project instances.
- Angegeben von:
setCurrentTestProjectin SchnittstelleAntUnitListener- Parameter:
p- the test project
-
startTestSuite
Beschreibung aus Schnittstelle kopiert:AntUnitListenerInvoked once per build file, before any targets get executed.- Angegeben von:
startTestSuitein SchnittstelleAntUnitListener- Parameter:
testProject- the projectbuildFile- the build file
-
endTestSuite
Beschreibung aus Schnittstelle kopiert:AntUnitListenerInvoked once per build file, after all targets have been executed.- Angegeben von:
endTestSuitein SchnittstelleAntUnitListener- Parameter:
testProject- the projectbuildFile- the build file
-
startTest
Beschreibung aus Schnittstelle kopiert:AntUnitListenerInvoked before a test target gets executed.- Angegeben von:
startTestin SchnittstelleAntUnitListener- Parameter:
target- name of the target
-
endTest
Beschreibung aus Schnittstelle kopiert:AntUnitListenerInvoked after a test target has been executed.- Angegeben von:
endTestin SchnittstelleAntUnitListener- Parameter:
target- name of the target
-
addFailure
Beschreibung aus Schnittstelle kopiert:AntUnitListenerInvoked if an assert tasked caused an error during execution.- Angegeben von:
addFailurein SchnittstelleAntUnitListener- Parameter:
target- name of the targetae- the failure
-
addError
Beschreibung aus Schnittstelle kopiert:AntUnitListenerInvoked if any error other than a failed assertion occured during execution.- Angegeben von:
addErrorin SchnittstelleAntUnitListener- Parameter:
target- name of the targetae- the error
-