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.SendLogTo
errorCount, failureCount, nf, runCount, start, testStart
Constructor and Description |
---|
FailureAntUnitListener()
No-arg constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(String target,
Throwable ae)
Invoked if any error other than a failed assertion occured
during execution.
|
void |
addFailure(String target,
AssertionFailedException ae)
Invoked if an assert tasked caused an error during execution.
|
void |
endTest(String target)
not in use
|
void |
endTestSuite(org.apache.tools.ant.Project testProject,
String buildFile)
Invoked once per build file, after all targets have been executed.
|
void |
setFile(File file) |
void |
startTestSuite(org.apache.tools.ant.Project testProject,
String buildFile)
Invoked once per build file, before any targets get executed.
|
close, getCurrentTestProject, getLocation, getOut, getToDir, messageLogged, normalize, setCurrentTestProject, setLogLevel, setParentTask, setSendLogTo, setToDir, startTest
public void setFile(File file)
public void startTestSuite(org.apache.tools.ant.Project testProject, String buildFile)
AntUnitListener
startTestSuite
in interface AntUnitListener
startTestSuite
in class BaseAntUnitListener
testProject
- the projectbuildFile
- the build filepublic void addError(String target, Throwable ae)
AntUnitListener
addError
in interface AntUnitListener
addError
in class BaseAntUnitListener
target
- name of the targetae
- the errorpublic void addFailure(String target, AssertionFailedException ae)
AntUnitListener
addFailure
in interface AntUnitListener
addFailure
in class BaseAntUnitListener
target
- name of the targetae
- the failurepublic void endTest(String target)
target
- name of the targetpublic void endTestSuite(org.apache.tools.ant.Project testProject, String buildFile)
AntUnitListener
testProject
- the projectbuildFile
- the build fileCopyright © 2022 The Apache Software Foundation. All rights reserved.