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(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, startTest
public void setFile(java.io.File file)
public void startTestSuite(org.apache.tools.ant.Project testProject, java.lang.String buildFile)
AntUnitListener
startTestSuite
in interface AntUnitListener
startTestSuite
in class BaseAntUnitListener
public void addError(java.lang.String target, java.lang.Throwable ae)
AntUnitListener
addError
in interface AntUnitListener
addError
in class BaseAntUnitListener
public void addFailure(java.lang.String target, AssertionFailedException ae)
AntUnitListener
addFailure
in interface AntUnitListener
addFailure
in class BaseAntUnitListener
public void endTest(java.lang.String target)
public void endTestSuite(org.apache.tools.ant.Project testProject, java.lang.String buildFile)
AntUnitListener
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.