- add(ResourceCollection) - Method in class org.apache.ant.antunit.AntUnit
-
Add build files to run as tests.
- add(AntUnitListener) - Method in class org.apache.ant.antunit.AntUnit
-
Add a test listener.
- add(Resource) - Method in class org.apache.ant.antunit.ResourceExists
-
The resource to check as nested element.
- addError(String, Throwable) - Method in interface org.apache.ant.antunit.AntUnitListener
-
Invoked if any error other than a failed assertion occured
during execution.
- addError(String, Throwable) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
- addError(String, Throwable) - Method in class org.apache.ant.antunit.listener.FailureAntUnitListener
-
- addError(String, Throwable) - Method in class org.apache.ant.antunit.listener.LogForwarder
-
- addError(String, Throwable) - Method in class org.apache.ant.antunit.listener.PlainAntUnitListener
-
- addError(String, Throwable) - Method in class org.apache.ant.antunit.listener.XMLAntUnitListener
-
- addFailure(String, AssertionFailedException) - Method in interface org.apache.ant.antunit.AntUnitListener
-
Invoked if an assert tasked caused an error during execution.
- addFailure(String, AssertionFailedException) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
- addFailure(String, AssertionFailedException) - Method in class org.apache.ant.antunit.listener.FailureAntUnitListener
-
- addFailure(String, AssertionFailedException) - Method in class org.apache.ant.antunit.listener.LogForwarder
-
- addFailure(String, AssertionFailedException) - Method in class org.apache.ant.antunit.listener.PlainAntUnitListener
-
- addFailure(String, AssertionFailedException) - Method in class org.apache.ant.antunit.listener.XMLAntUnitListener
-
- addMatchingReferences(Hashtable, Collection) - Method in class org.apache.ant.antunit.AntUnit.Reference
-
Add to dest
any reference IDs in
src
matching this reference descriptor
- addPropertySet(PropertySet) - Method in class org.apache.ant.antunit.AntUnit
-
Add a PropertySet.
- addReference(AntUnit.Reference) - Method in class org.apache.ant.antunit.AntUnit
-
Add an inherited reference.
- addReference(AntUnit.Reference) - Method in class org.apache.ant.antunit.AntUnit.ReferenceSet
-
- ANT_LOG - Static variable in class org.apache.ant.antunit.listener.BaseAntUnitListener.SendLogTo
-
- AntUnit - Class in org.apache.ant.antunit
-
Run every target whose name starts with "test" in a set of build files.
- AntUnit() - Constructor for class org.apache.ant.antunit.AntUnit
-
- AntUnit.Reference - Class in org.apache.ant.antunit
-
- AntUnit.ReferenceSet - Class in org.apache.ant.antunit
-
Defines a collection of inherited
references
,
with an optional nested
Mapper
that maps them to new
reference IDs in the target project.
- AntUnitExecutionNotifier - Interface in org.apache.ant.antunit
-
Provides methods that allow the AntUnitScriptRunner to notify the test progress.
- AntUnitListener - Interface in org.apache.ant.antunit
-
A test listener for <antunit>.
- AntUnitLogLevel() - Constructor for class org.apache.ant.antunit.listener.BaseAntUnitListener.AntUnitLogLevel
-
- AntUnitScriptRunner - Class in org.apache.ant.antunit
-
Run antunit tests suites.
- AntUnitScriptRunner(ProjectFactory) - Constructor for class org.apache.ant.antunit.AntUnitScriptRunner
-
Create a new AntScriptRunner on the given environment.
- AntUnitSuite - Class in org.apache.ant.antunit.junit3
-
A JUnit 3 TestSuite that group a suite of AntUnit targets coming from an ant
script.
- AntUnitSuite(File, Class) - Constructor for class org.apache.ant.antunit.junit3.AntUnitSuite
-
Create a JUnit TestSuite that when executed will run the given ant
script.
- AntUnitSuiteRunner - Class in org.apache.ant.antunit.junit4
-
JUnit4 Runner to put in a RunWith annotation of the AntUnitSuite when using a
JUnit4 runner.
- AntUnitSuiteRunner(Class) - Constructor for class org.apache.ant.antunit.junit4.AntUnitSuiteRunner
-
- AntUnitTestCase - Class in org.apache.ant.antunit.junit3
-
JUnit TestCase that will executes a single AntUnit target.
- AntUnitTestCase(String) - Constructor for class org.apache.ant.antunit.junit3.AntUnitTestCase
-
Prepare an AntUnitTestCase that will be executed alone.
- AntUnitTestCase(AntUnitSuite, File, String) - Constructor for class org.apache.ant.antunit.junit3.AntUnitTestCase
-
Prepare an AntUnitTestCase that will be executed in a suite.
- AssertionFailedException - Exception in org.apache.ant.antunit
-
Specialized BuildException thrown by the AssertTask task.
- AssertionFailedException(String) - Constructor for exception org.apache.ant.antunit.AssertionFailedException
-
- AssertionFailedException(String, Location) - Constructor for exception org.apache.ant.antunit.AssertionFailedException
-
- AssertionFailedException(String, BuildException) - Constructor for exception org.apache.ant.antunit.AssertionFailedException
-
- AssertTask - Class in org.apache.ant.antunit
-
Exits the active build, giving an additional message if the single
nested condition fails or if there is no condition at all.
- AssertTask() - Constructor for class org.apache.ant.antunit.AssertTask
-
- ATTR_CLASSNAME - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
classname attribute for testcase elements
- ATTR_COLUMN - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
columnnumber attribute
- ATTR_ERRORS - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
errors attribute for testsuite elements
- ATTR_FAILURES - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
failures attribute for testsuite elements
- ATTR_ID - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
id attribute
- ATTR_LINE - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
linenumber attribute
- ATTR_MESSAGE - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
message attribute for failure elements
- ATTR_NAME - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
name attribute for property, testcase and testsuite elements
- ATTR_PACKAGE - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
package attribute for the aggregate document
- ATTR_TESTS - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
tests attribute for testsuite elements
- ATTR_TIME - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
time attribute for testcase and testsuite elements
- ATTR_TYPE - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
type attribute for failure and error elements
- ATTR_VALUE - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
value attribute for property elements
- getAntInitialisationException() - Method in class org.apache.ant.antunit.junit3.AntUnitSuite
-
- getAntScriptError() - Method in class org.apache.ant.antunit.junit3.ErrorTestCase
-
- getCurrentProject() - Method in class org.apache.ant.antunit.AntUnitScriptRunner
-
Get the project currently in use.
- getCurrentTestProject() - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
- getDebugLog() - Method in class org.apache.ant.antunit.LogCapturer
-
All messages with logLevel == Project.MSG_DEBUG
or
more severe merging messages into a single line.
- getDebugLog(boolean) - Method in class org.apache.ant.antunit.LogCapturer
-
All messages with logLevel == Project.MSG_DEBUG
or
more severe.
- getDescription() - Method in class org.apache.ant.antunit.junit4.AntUnitSuiteRunner
-
Runner implementation
- getErrLog() - Method in class org.apache.ant.antunit.LogCapturer
-
All messages with logLevel == Project.MSG_ERR
merging messages into a single line.
- getErrLog(boolean) - Method in class org.apache.ant.antunit.LogCapturer
-
All messages with logLevel == Project.MSG_ERR
.
- getInfoLog() - Method in class org.apache.ant.antunit.LogCapturer
-
All messages with logLevel == Project.MSG_INFO
or
more severe merging messages into a single line.
- getInfoLog(boolean) - Method in class org.apache.ant.antunit.LogCapturer
-
All messages with logLevel == Project.MSG_INFO
or
more severe.
- getInputStream() - Method in class org.apache.ant.antunit.LogContent
-
- getLevel() - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener.AntUnitLogLevel
-
- getLocation(Throwable) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
- getName() - Method in class org.apache.ant.antunit.AntUnitScriptRunner
-
Provides the name of the active script.
- getOut(String) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
- getRegex() - Method in class org.apache.ant.antunit.AntUnit.Reference
-
- getTarget() - Method in class org.apache.ant.antunit.junit3.AntUnitTestCase
-
Get the AntUnit test target name.
- getTestTartgets() - Method in class org.apache.ant.antunit.AntUnitScriptRunner
-
- getToDir() - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
Directory to write reports to.
- getValues() - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener.AntUnitLogLevel
-
- getValues() - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener.SendLogTo
-
- getVerboseLog() - Method in class org.apache.ant.antunit.LogCapturer
-
All messages with logLevel == Project.MSG_VERBOSE
or
more severe merging messages into a single line.
- getVerboseLog(boolean) - Method in class org.apache.ant.antunit.LogCapturer
-
All messages with logLevel == Project.MSG_VERBOSE
or
more severe.
- getWarnLog() - Method in class org.apache.ant.antunit.LogCapturer
-
All messages with logLevel == Project.MSG_WARN
or
more severe merging messages into a single line.
- getWarnLog(boolean) - Method in class org.apache.ant.antunit.LogCapturer
-
All messages with logLevel == Project.MSG_WARN
or
more severe.
- SendLogTo() - Constructor for class org.apache.ant.antunit.listener.BaseAntUnitListener.SendLogTo
-
- SendLogTo(String) - Constructor for class org.apache.ant.antunit.listener.BaseAntUnitListener.SendLogTo
-
- setCurrentTestProject(Project) - Method in interface org.apache.ant.antunit.AntUnitListener
-
Set a reference to the Project instance currently executing the
test target.
- setCurrentTestProject(Project) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
- setCurrentTestProject(Project) - Method in class org.apache.ant.antunit.listener.LogForwarder
-
- setErrorProperty(String) - Method in class org.apache.ant.antunit.AntUnit
-
Set the name of a property to set if an error or failure occurs.
- setExpectedMessage(String) - Method in class org.apache.ant.antunit.ExpectFailureTask
-
The exception message to expect.
- setFailOnError(boolean) - Method in class org.apache.ant.antunit.AntUnit
-
Set whether to stop testing if an error or failure occurs?
- setFile(File) - Method in class org.apache.ant.antunit.listener.FailureAntUnitListener
-
- setLevel(Echo.EchoLevel) - Method in class org.apache.ant.antunit.LogContains
-
minimal log priority to consult.
- setLevel(LogLevel) - Method in class org.apache.ant.antunit.LogContent
-
Set the desired log level.
- setLogLevel(BaseAntUnitListener.AntUnitLogLevel) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
Sets the minimum level a log message must be logged at to be
included in the output.
- setMapper(String, String, String) - Method in class org.apache.ant.antunit.AntUnit.ReferenceSet
-
Configure a single mapper to translate reference IDs.
- setMergeLines(boolean) - Method in class org.apache.ant.antunit.LogContains
-
Whether to merge messages into a single line or split them into
multiple lines.
- setMergeLines(boolean) - Method in class org.apache.ant.antunit.LogContent
-
Whether to merge messages into a single line or split them into
multiple lines.
- setMessage(String) - Method in class org.apache.ant.antunit.AssertTask
-
Message to use when the assertion fails.
- setMessage(String) - Method in class org.apache.ant.antunit.ExpectFailureTask
-
The message to use in the AssertionFailedException if the nested
tasks fail to raise the "correct" exception.
- setParentTask(Task) - Method in interface org.apache.ant.antunit.AntUnitListener
-
Set a reference to the AntUnit task executing the tests, this
provides access to the containing project, target or Ant's
logging system.
- setParentTask(Task) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
- setParentTask(Task) - Method in class org.apache.ant.antunit.listener.LogForwarder
-
- setRefid(String) - Method in class org.apache.ant.antunit.ResourceExists
-
The resource to check as a refid.
- setRegex(String) - Method in class org.apache.ant.antunit.AntUnit.Reference
-
Set a regular expression to match references.
- setResource(Resource) - Method in class org.apache.ant.antunit.ResourceExists
-
The resource to check as attribute.
- setSendLogTo(BaseAntUnitListener.SendLogTo) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
Where to send the test report.
- setSendLogTo(BaseAntUnitListener.SendLogTo) - Method in class org.apache.ant.antunit.listener.PlainAntUnitListener
-
Where to send the test report.
- setText(String) - Method in class org.apache.ant.antunit.LogContains
-
Test the log shall contain.
- setToDir(File) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
Sets the directory to write test reports to.
- sort(Sorter) - Method in class org.apache.ant.antunit.junit4.AntUnitSuiteRunner
-
Sortable implementation
- start - Variable in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
time for the starts of the current test-suite and test-target.
- startTest(String) - Method in interface org.apache.ant.antunit.AntUnitListener
-
Invoked before a test target gets executed.
- startTest(String) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
- startTest(String) - Method in class org.apache.ant.antunit.listener.LogForwarder
-
- startTest(String) - Method in class org.apache.ant.antunit.listener.PlainAntUnitListener
-
- startTest(String) - Method in class org.apache.ant.antunit.listener.XMLAntUnitListener
-
- startTestSuite(Project, String) - Method in interface org.apache.ant.antunit.AntUnitListener
-
Invoked once per build file, before any targets get executed.
- startTestSuite(Project, String) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
- startTestSuite(Project, String) - Method in class org.apache.ant.antunit.listener.FailureAntUnitListener
-
- startTestSuite(Project, String) - Method in class org.apache.ant.antunit.listener.LogForwarder
-
- startTestSuite(Project, String) - Method in class org.apache.ant.antunit.listener.PlainAntUnitListener
-
- startTestSuite(Project, String) - Method in class org.apache.ant.antunit.listener.XMLAntUnitListener
-
- SYSTEM_ERR - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
the system-err element
- SYSTEM_OUT - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
the system-out element