public class FailureAntUnitListener extends BaseAntUnitListener
| Modifier and Type | Class and Description |
|---|---|
class |
FailureAntUnitListener.TestInfos
Class for collecting needed information about failed tests.
|
BaseAntUnitListener.AntUnitLogLevel, BaseAntUnitListener.LogGrabber, BaseAntUnitListener.SendLogToerrorCount, failureCount, nf, runCount, start, testStart| Constructor and Description |
|---|
FailureAntUnitListener()
No-arg constructor.
|
| 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)
not in use
|
void |
endTestSuite(org.apache.tools.ant.Project testProject,
java.lang.String buildFile)
Invoked once per build file, after all targets have been executed.
|
void |
setFile(java.io.File file) |
void |
startTestSuite(org.apache.tools.ant.Project testProject,
java.lang.String buildFile)
Invoked once per build file, before any targets get executed.
|
close, getCurrentTestProject, getLocation, getOut, getToDir, messageLogged, normalize, setCurrentTestProject, setLogLevel, setParentTask, setSendLogTo, setToDir, startTestpublic void setFile(java.io.File file)
public void startTestSuite(org.apache.tools.ant.Project testProject,
java.lang.String buildFile)
AntUnitListenerstartTestSuite in interface AntUnitListenerstartTestSuite in class BaseAntUnitListenertestProject - the projectbuildFile - the build filepublic void addError(java.lang.String target,
java.lang.Throwable ae)
AntUnitListeneraddError in interface AntUnitListeneraddError in class BaseAntUnitListenertarget - name of the targetae - the errorpublic void addFailure(java.lang.String target,
AssertionFailedException ae)
AntUnitListeneraddFailure in interface AntUnitListeneraddFailure in class BaseAntUnitListenertarget - name of the targetae - the failurepublic void endTest(java.lang.String target)
target - name of the targetpublic void endTestSuite(org.apache.tools.ant.Project testProject,
java.lang.String buildFile)
AntUnitListenertestProject - the projectbuildFile - the build file