org.apache.ant.antunit.listener
public class LogForwarder extends java.lang.Object implements AntUnitListener
| Constructor and Description |
|---|
LogForwarder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(java.lang.String target,
java.lang.Throwable ae)
Invoked if any error other than a failed assertion occured
during execution.
|
void |
addFailure(java.lang.String target,
AssertionFailedException ae)
Invoked if an assert tasked caused an error during execution.
|
void |
endTest(java.lang.String target)
Invoked after a test target has been executed.
|
void |
endTestSuite(org.apache.tools.ant.Project testProject,
java.lang.String buildFile)
Invoked once per build file, after all targets have been executed.
|
void |
setCurrentTestProject(org.apache.tools.ant.Project p)
Set a reference to the Project instance currently executing the
test target.
|
void |
setParentTask(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.
|
void |
startTest(java.lang.String target)
Invoked before a test target gets executed.
|
void |
startTestSuite(org.apache.tools.ant.Project testProject,
java.lang.String buildFile)
Invoked once per build file, before any targets get executed.
|
public void setParentTask(org.apache.tools.ant.Task t)
AntUnitListenersetParentTask in interface AntUnitListenerpublic void setCurrentTestProject(org.apache.tools.ant.Project p)
AntUnitListenerThis 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.
setCurrentTestProject in interface AntUnitListenerpublic void startTestSuite(org.apache.tools.ant.Project testProject,
java.lang.String buildFile)
AntUnitListenerstartTestSuite in interface AntUnitListenerpublic void endTestSuite(org.apache.tools.ant.Project testProject,
java.lang.String buildFile)
AntUnitListenerendTestSuite in interface AntUnitListenerpublic void startTest(java.lang.String target)
AntUnitListenerstartTest in interface AntUnitListenerpublic void endTest(java.lang.String target)
AntUnitListenerendTest in interface AntUnitListenerpublic void addFailure(java.lang.String target,
AssertionFailedException ae)
AntUnitListeneraddFailure in interface AntUnitListenerpublic void addError(java.lang.String target,
java.lang.Throwable ae)
AntUnitListeneraddError in interface AntUnitListener