Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- a - Variable in class org.apache.ant.antunit.AntUnit.BuildToAntUnitListener
- 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.
- add(ResourceCollection) - Method in class org.apache.ant.antunit.AntUnit
-
Add build files to run as tests.
- 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 insrc
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
- antScriptRunner - Variable in class org.apache.ant.antunit.junit3.AntUnitSuite
- 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.BuildToAntUnitListener - Class in org.apache.ant.antunit
-
Adapts AntUnitListener to BuildListener.
- 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 nestedMapper
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
- AntUnitLogLevel(String) - 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.
- AntUnitSuite(AntUnitTestCase, File) - Constructor for class org.apache.ant.antunit.junit3.AntUnitSuite
-
Constructor used by AntUnitTestCase when a single test case is created.
- AntUnitSuite.MyProjectFactory - Class in org.apache.ant.antunit.junit3
-
The antscript project factory that creates projects in a junit context.
- 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
- AntUnitSuiteRunner(AntUnitSuite, 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.
- AntUnitTestCase.TestCaseName - Class in org.apache.ant.antunit.junit3
-
Handle the serialization and the parsing of the name of a TestCase.
- append(StringBuffer, BuildEvent, int, boolean) - Static method in class org.apache.ant.antunit.LogCapturer
- 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, BuildException) - Constructor for exception org.apache.ant.antunit.AssertionFailedException
- AssertionFailedException(String, Location) - 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
- attachListeners(File, Project) - Method in class org.apache.ant.antunit.AntUnit
-
Wraps all registered test listeners in BuildListeners and attaches them to the new project instance.
- 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
B
- BaseAntUnitListener - Class in org.apache.ant.antunit.listener
-
A test listener for <antunit> modeled aftern the Plain JUnit test listener that is part of Ant.
- BaseAntUnitListener(BaseAntUnitListener.SendLogTo, String) - Constructor for class org.apache.ant.antunit.listener.BaseAntUnitListener
- BaseAntUnitListener.AntUnitLogLevel - Class in org.apache.ant.antunit.listener
- BaseAntUnitListener.LogGrabber - Class in org.apache.ant.antunit.listener
- BaseAntUnitListener.SendLogTo - Class in org.apache.ant.antunit.listener
- BOTH - Static variable in class org.apache.ant.antunit.listener.BaseAntUnitListener.SendLogTo
- BR - Static variable in class org.apache.ant.antunit.listener.FailureAntUnitListener
-
LineSeparator just for beautifying the output.
- BUILD_FILE - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
name of the build file.
- buildfile - Variable in class org.apache.ant.antunit.listener.FailureAntUnitListener.TestInfos
-
The buildfile of the project.
- buildFile - Variable in class org.apache.ant.antunit.AntUnit.BuildToAntUnitListener
- buildFiles - Variable in class org.apache.ant.antunit.AntUnit
-
The build files to process.
- buildFinished(BuildEvent) - Method in class org.apache.ant.antunit.AntUnit.BuildToAntUnitListener
- buildFinished(BuildEvent) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener.LogGrabber
- buildFinished(BuildEvent) - Method in class org.apache.ant.antunit.LogCapturer
-
De-register.
- buildStarted(BuildEvent) - Method in class org.apache.ant.antunit.AntUnit.BuildToAntUnitListener
- buildStarted(BuildEvent) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener.LogGrabber
- buildStarted(BuildEvent) - Method in class org.apache.ant.antunit.LogCapturer
-
Empty.
- BuildToAntUnitListener(String, AntUnitListener) - Constructor for class org.apache.ant.antunit.AntUnit.BuildToAntUnitListener
C
- close() - Method in class org.apache.ant.antunit.junit3.MultiProjectDemuxOutputStream
- close(OutputStream) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
- compareTo(Object) - Method in class org.apache.ant.antunit.listener.FailureAntUnitListener.TestInfos
- copyReference(String, Project, String) - Method in class org.apache.ant.antunit.AntUnit.ReferenceSet
-
Try to clone and reconfigure the object referenced by oldkey in the parent project and add it to the new project with the key newkey.
- copyReferencesInto(Project) - Method in class org.apache.ant.antunit.AntUnit.ReferenceSet
-
Copy all identified references into the target project, applying any name mapping required by a nested mapper element.
- createMapper() - Method in class org.apache.ant.antunit.AntUnit.ReferenceSet
- createProject() - Method in class org.apache.ant.antunit.junit3.AntUnitSuite.MyProjectFactory
- createProject() - Method in interface org.apache.ant.antunit.ProjectFactory
-
Creates a new project instance and configures it according to the execution context.
- createProjectForFile(File) - Method in class org.apache.ant.antunit.AntUnit
-
Creates a new project instance and configures it.
- createReferenceSet() - Method in class org.apache.ant.antunit.AntUnit
-
Add a set of inherited references.
- currentBuildFile - Variable in class org.apache.ant.antunit.listener.FailureAntUnitListener
-
The current running build file.
- currentTest - Variable in class org.apache.ant.antunit.listener.BaseAntUnitListener
- currentTest - Variable in class org.apache.ant.antunit.listener.XMLAntUnitListener
- currentTestProject - Variable in class org.apache.ant.antunit.listener.FailureAntUnitListener
-
The current running test project.
D
- DEFAULT_MESSAGE - Static variable in exception org.apache.ant.antunit.AssertionFailedException
- doc - Variable in class org.apache.ant.antunit.listener.XMLAntUnitListener
- doFile(File) - Method in class org.apache.ant.antunit.AntUnit
-
Processes a single build file.
- domWri - Variable in class org.apache.ant.antunit.listener.XMLAntUnitListener
- doResourceCollection(ResourceCollection) - Method in class org.apache.ant.antunit.AntUnit
-
Processes a ResourceCollection.
E
- endSuite(Throwable, AntUnitExecutionNotifier) - Method in class org.apache.ant.antunit.AntUnitScriptRunner
-
Executes the suiteTearDown target if presents and report any execution error.
- endTest(String) - Method in interface org.apache.ant.antunit.AntUnitListener
-
Invoked after a test target has been executed.
- endTest(String) - Method in class org.apache.ant.antunit.listener.FailureAntUnitListener
-
not in use
- endTest(String) - Method in class org.apache.ant.antunit.listener.LogForwarder
- endTest(String) - Method in class org.apache.ant.antunit.listener.PlainAntUnitListener
- endTest(String) - Method in class org.apache.ant.antunit.listener.XMLAntUnitListener
- endTestSuite(Project, String) - Method in interface org.apache.ant.antunit.AntUnitListener
-
Invoked once per build file, after all targets have been executed.
- endTestSuite(Project, String) - Method in class org.apache.ant.antunit.listener.FailureAntUnitListener
- endTestSuite(Project, String) - Method in class org.apache.ant.antunit.listener.LogForwarder
- endTestSuite(Project, String) - Method in class org.apache.ant.antunit.listener.PlainAntUnitListener
- endTestSuite(Project, String) - Method in class org.apache.ant.antunit.listener.XMLAntUnitListener
- equals(Object) - Method in class org.apache.ant.antunit.LogContent
- ERROR - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
the error element
- ERROR_NO_TESTS - Static variable in class org.apache.ant.antunit.AntUnit
-
Message if no tests have been specified.
- ERROR_NON_FILES - Static variable in class org.apache.ant.antunit.AntUnit
-
Message if non-File resources have been specified.
- ERROR_TESTS_FAILED - Static variable in class org.apache.ant.antunit.AntUnit
-
Message to print if an error or failure occured.
- errorCount - Variable in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
keeps track of the numer of executed targets, the failures an errors.
- errorMessage - Variable in class org.apache.ant.antunit.listener.FailureAntUnitListener.TestInfos
-
The error message which was shown.
- errorProperty - Variable in class org.apache.ant.antunit.AntUnit
-
Name of a property to set in case of an error.
- errors - Variable in class org.apache.ant.antunit.AntUnit
-
has an error occured?
- ErrorTestCase - Class in org.apache.ant.antunit.junit3
-
A TestCase that will just report an error when running.
- ErrorTestCase(BuildException) - Constructor for class org.apache.ant.antunit.junit3.ErrorTestCase
-
Creates a TestCase that will report the Ant BuildException when running.
- eval() - Method in class org.apache.ant.antunit.LogContains
- eval() - Method in class org.apache.ant.antunit.ResourceExists
- events - Variable in class org.apache.ant.antunit.LogCapturer
- ex - Variable in class org.apache.ant.antunit.junit3.ErrorTestCase
- execute() - Method in class org.apache.ant.antunit.AntUnit
-
Execute the tests.
- execute() - Method in class org.apache.ant.antunit.AssertTask
- execute() - Method in class org.apache.ant.antunit.ExpectFailureTask
- expandRefId() - Method in class org.apache.ant.antunit.ResourceExists
- expectedMessage - Variable in class org.apache.ant.antunit.ExpectFailureTask
- ExpectFailureTask - Class in org.apache.ant.antunit
-
Expects the nested tasks to throw a BuildException and optinally asserts the message of that exception.
- ExpectFailureTask() - Constructor for class org.apache.ant.antunit.ExpectFailureTask
- extension - Variable in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
Extension for report files.
F
- failedTests - Static variable in class org.apache.ant.antunit.listener.FailureAntUnitListener
-
A sorted list (without duplicates) of failed tests.
- failOnError - Variable in class org.apache.ant.antunit.AntUnit
-
stop testing if an error or failure occurs?
- FAILURE - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
the failure element
- FailureAntUnitListener - Class in org.apache.ant.antunit.listener
-
This AntUnitListener creates a new buildfile with a target for each failed test target in the AntUnit run.
- FailureAntUnitListener() - Constructor for class org.apache.ant.antunit.listener.FailureAntUnitListener
-
No-arg constructor.
- FailureAntUnitListener.TestInfos - Class in org.apache.ant.antunit.listener
-
Class for collecting needed information about failed tests.
- failureBuildfile - Static variable in class org.apache.ant.antunit.listener.FailureAntUnitListener
-
Where to write the generated buildfile.
- failureCount - Variable in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
keeps track of the numer of executed targets, the failures an errors.
- failures - Variable in class org.apache.ant.antunit.AntUnit
-
has a failure occured?
- FILE - Static variable in class org.apache.ant.antunit.listener.BaseAntUnitListener.SendLogTo
- filter(Filter) - Method in class org.apache.ant.antunit.junit4.AntUnitSuiteRunner
-
Filterable implementation
- fireEndTest(String) - Method in class org.apache.ant.antunit.AntUnit
-
invokes endTest on all registered test listeners.
- fireEndTest(String) - Method in interface org.apache.ant.antunit.AntUnitExecutionNotifier
-
invokes endTest on all registered test listeners.
- fireEndTest(String) - Method in class org.apache.ant.antunit.junit3.JUnitNotificationAdapter
- fireError(String, Throwable) - Method in class org.apache.ant.antunit.AntUnit
-
invokes addError on all registered test listeners.
- fireError(String, Throwable) - Method in interface org.apache.ant.antunit.AntUnitExecutionNotifier
-
invokes addError on all registered test listeners.
- fireError(String, Throwable) - Method in class org.apache.ant.antunit.junit3.JUnitNotificationAdapter
- fireFail(String, AssertionFailedException) - Method in class org.apache.ant.antunit.AntUnit
-
invokes addFailure on all registered test listeners.
- fireFail(String, AssertionFailedException) - Method in interface org.apache.ant.antunit.AntUnitExecutionNotifier
-
invokes addFailure on all registered test listeners.
- fireFail(String, AssertionFailedException) - Method in class org.apache.ant.antunit.junit3.JUnitNotificationAdapter
- fireFailOrError(String, BuildException, AntUnitExecutionNotifier) - Method in class org.apache.ant.antunit.AntUnitScriptRunner
-
Try to see whether the BuildException e is an AssertionFailedException or is caused by an AssertionFailedException.
- fireStartTest(String) - Method in class org.apache.ant.antunit.AntUnit
-
invokes start on all registered test listeners.
- fireStartTest(String) - Method in interface org.apache.ant.antunit.AntUnitExecutionNotifier
-
invokes start on all registered test listeners.
- fireStartTest(String) - Method in class org.apache.ant.antunit.junit3.JUnitNotificationAdapter
- flush() - Method in class org.apache.ant.antunit.junit3.MultiProjectDemuxOutputStream
- formatError(String, Throwable) - Method in class org.apache.ant.antunit.listener.PlainAntUnitListener
- formatError(String, Throwable) - Method in class org.apache.ant.antunit.listener.XMLAntUnitListener
G
- getAntInitialisationException() - Method in class org.apache.ant.antunit.junit3.AntUnitSuite
- getAntScriptError() - Method in class org.apache.ant.antunit.junit3.ErrorTestCase
- getCleanProject() - Method in class org.apache.ant.antunit.AntUnitScriptRunner
-
Get a project that has not yet been used in order to execute a target on it.
- 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. - getDemuxOutputStream() - Method in class org.apache.ant.antunit.junit3.MultiProjectDemuxOutputStream
- 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
. - getHostname() - Method in class org.apache.ant.antunit.listener.XMLAntUnitListener
-
get the local hostname - stolen from junit.XMLJUnitResultFormatter
- 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
- getJUnit3AntSuite(Class) - Static method in class org.apache.ant.antunit.junit4.AntUnitSuiteRunner
- getLevel() - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener.AntUnitLogLevel
- getLocation(Throwable) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
- getLog(int, boolean) - Method in class org.apache.ant.antunit.LogCapturer
- getLogCapturer() - Method in class org.apache.ant.antunit.LogContent
- getLogStream(LogCapturer) - Method in class org.apache.ant.antunit.LogContent
- getName() - Method in class org.apache.ant.antunit.AntUnitScriptRunner
-
Provides the name of the active script.
- getName() - Method in class org.apache.ant.antunit.junit3.AntUnitTestCase.TestCaseName
- getOut(String) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
- getRegex() - Method in class org.apache.ant.antunit.AntUnit.Reference
- getScript() - Method in class org.apache.ant.antunit.junit3.AntUnitTestCase.TestCaseName
- getTarget() - Method in class org.apache.ant.antunit.junit3.AntUnitTestCase
-
Get the AntUnit test target name.
- getTarget() - Method in class org.apache.ant.antunit.junit3.AntUnitTestCase.TestCaseName
- 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.
H
- handleErrorFlush(String) - Method in class org.apache.ant.antunit.AntUnit
-
Redirect error flush to new project instance.
- handleErrorOutput(String) - Method in class org.apache.ant.antunit.AntUnit
-
Redirect error output to new project instance.
- handleFlush(String) - Method in class org.apache.ant.antunit.AntUnit
-
Redirect flush to new project instance.
- handleInput(byte[], int, int) - Method in class org.apache.ant.antunit.AntUnit
-
Redirect input to new project instance.
- handleOutput(String) - Method in class org.apache.ant.antunit.AntUnit
-
Redirect output to new project instance.
- hasAntInitError() - Method in class org.apache.ant.antunit.junit3.AntUnitSuite
- hasSetUp - Variable in class org.apache.ant.antunit.AntUnitScriptRunner
-
Does that script have a setUp target (defined when scanning the script)
- hasSuiteSetUp - Variable in class org.apache.ant.antunit.AntUnitScriptRunner
-
Does that script has a suiteSetUp target.
- hasSuiteTearDown - Variable in class org.apache.ant.antunit.AntUnitScriptRunner
-
Does that script has a suite tearDown target that should be executed.
- hasTearDown - Variable in class org.apache.ant.antunit.AntUnitScriptRunner
-
Does that script have a tearDown target (defined when scanning the script)
- HOSTNAME - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
name of host running the tests
I
- INDENT - Static variable in class org.apache.ant.antunit.listener.XMLAntUnitListener
- initialisationException - Variable in class org.apache.ant.antunit.junit3.AntUnitTestCase
-
Store the exception when the project can not be parsed, but only if this class has been created directly by the IDE from its name.
- initializationReportingTest - Variable in class org.apache.ant.antunit.junit3.AntUnitSuite
- inner - Variable in class org.apache.ant.antunit.listener.PlainAntUnitListener
-
Helper to store intermediate output.
- isErrorStream - Variable in class org.apache.ant.antunit.junit3.MultiProjectDemuxOutputStream
- isExists() - Method in class org.apache.ant.antunit.LogContent
- isSuiteStarted - Variable in class org.apache.ant.antunit.AntUnitScriptRunner
-
Indicates if the startSuite method has been invoked.
J
- junit3Suite - Variable in class org.apache.ant.antunit.junit4.AntUnitSuiteRunner
- JUnitNotificationAdapter - Class in org.apache.ant.antunit.junit3
-
Adapt AntUnitExecutionNotifier events into JUnit3 TestResult events
- JUnitNotificationAdapter(TestResult, Enumeration) - Constructor for class org.apache.ant.antunit.junit3.JUnitNotificationAdapter
- junitTestResult - Variable in class org.apache.ant.antunit.junit3.JUnitNotificationAdapter
L
- lastDemuxOutputStream - Variable in class org.apache.ant.antunit.junit3.MultiProjectDemuxOutputStream
- lastProject - Variable in class org.apache.ant.antunit.junit3.MultiProjectDemuxOutputStream
- level - Variable in class org.apache.ant.antunit.LogContent
- levels - Static variable in class org.apache.ant.antunit.listener.BaseAntUnitListener.AntUnitLogLevel
- listeners - Variable in class org.apache.ant.antunit.AntUnit
-
listeners.
- log - Variable in class org.apache.ant.antunit.listener.PlainAntUnitListener
-
Collects log messages.
- log - Variable in class org.apache.ant.antunit.listener.XMLAntUnitListener
-
Collects log messages.
- LogCapturer - Class in org.apache.ant.antunit
-
Captures log messages generated during an antunit task run and makes them available to tasks via a project reference.
- LogCapturer(Project) - Constructor for class org.apache.ant.antunit.LogCapturer
- LogContains - Class in org.apache.ant.antunit
-
A condition that tests the log output of the current project for a given string.
- LogContains() - Constructor for class org.apache.ant.antunit.LogContains
- LogContent - Class in org.apache.ant.antunit
-
Exposes AntUnit log content as a (read-only) Resource.
- LogContent() - Constructor for class org.apache.ant.antunit.LogContent
-
Create a new LogContent resource.
- LogContent(Project, LogLevel) - Constructor for class org.apache.ant.antunit.LogContent
-
Create a new LogContent resource, specifying Project and log level.
- LogContent(Project, LogLevel, boolean) - Constructor for class org.apache.ant.antunit.LogContent
-
Create a new LogContent resource, specifying Project and log level.
- LogForwarder - Class in org.apache.ant.antunit.listener
-
A test listener for <antunit> who's whole purpose is to forward log output from the project under test to the project executing the <antunit> task.
- LogForwarder() - Constructor for class org.apache.ant.antunit.listener.LogForwarder
- LogGrabber() - Constructor for class org.apache.ant.antunit.listener.BaseAntUnitListener.LogGrabber
- logLevel - Variable in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
The minimum level a log message must be logged at to be included in the output.
- logLevel - Variable in class org.apache.ant.antunit.LogContains
- logTo - Variable in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
Where to send log.
M
- mapper - Variable in class org.apache.ant.antunit.AntUnit.ReferenceSet
-
maps source reference ID to target reference ID
- matcher - Variable in class org.apache.ant.antunit.AntUnit.Reference
- mergeLines - Variable in class org.apache.ant.antunit.LogContains
- mergeLines - Variable in class org.apache.ant.antunit.LogContent
- message - Variable in class org.apache.ant.antunit.AssertTask
-
Message to use when the assertion fails.
- message - Variable in class org.apache.ant.antunit.ExpectFailureTask
- messageLogged(BuildEvent) - Method in class org.apache.ant.antunit.AntUnit.BuildToAntUnitListener
- messageLogged(BuildEvent) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener.LogGrabber
- messageLogged(BuildEvent) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
Gets messages from the project running the test target if their level is at least of the level specified with
setLogLevel
. - messageLogged(BuildEvent) - Method in class org.apache.ant.antunit.listener.PlainAntUnitListener
- messageLogged(BuildEvent) - Method in class org.apache.ant.antunit.listener.XMLAntUnitListener
- messageLogged(BuildEvent) - Method in class org.apache.ant.antunit.LogCapturer
-
Record the message.
- MultiProjectDemuxOutputStream - Class in org.apache.ant.antunit.junit3
-
Forward stdout or stderr operation to the current antunit project.
- MultiProjectDemuxOutputStream(AntUnitScriptRunner, boolean) - Constructor for class org.apache.ant.antunit.junit3.MultiProjectDemuxOutputStream
- MyProjectFactory(File) - Constructor for class org.apache.ant.antunit.junit3.AntUnitSuite.MyProjectFactory
N
- name - Variable in class org.apache.ant.antunit.junit3.AntUnitTestCase.TestCaseName
- NAME - Static variable in class org.apache.ant.antunit.junit3.ErrorTestCase
-
The name we use for the error test case ('warning')
- NEW_LINE - Static variable in class org.apache.ant.antunit.listener.PlainAntUnitListener
- nf - Static variable in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
Formatter for timings.
- NONE - Static variable in class org.apache.ant.antunit.listener.BaseAntUnitListener.AntUnitLogLevel
- normalize(String) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
Turns the build file name into something that vaguely looks like a Java classname.
- notifier - Variable in class org.apache.ant.antunit.AntUnit
O
- onlyOne() - Method in class org.apache.ant.antunit.ResourceExists
- org.apache.ant.antunit - package org.apache.ant.antunit
- org.apache.ant.antunit.junit3 - package org.apache.ant.antunit.junit3
-
EXPERIMENTAL adapter to run AntUnit tests from within a JUnit3 test runner.
- org.apache.ant.antunit.junit4 - package org.apache.ant.antunit.junit4
-
EXPERIMENTAL adapter to run AntUnit tests from within a JUnit4 test runner.
- org.apache.ant.antunit.listener - package org.apache.ant.antunit.listener
- out - Variable in class org.apache.ant.antunit.listener.PlainAntUnitListener
- out - Variable in class org.apache.ant.antunit.listener.XMLAntUnitListener
P
- p - Variable in class org.apache.ant.antunit.LogCapturer
- parentTask - Variable in class org.apache.ant.antunit.listener.BaseAntUnitListener
- parentTask - Variable in class org.apache.ant.antunit.listener.LogForwarder
- PlainAntUnitListener - Class in org.apache.ant.antunit.listener
-
A test listener for <antunit> modelled after the Plain JUnit test listener that is part of Ant.
- PlainAntUnitListener() - Constructor for class org.apache.ant.antunit.listener.PlainAntUnitListener
- prjFactory - Variable in class org.apache.ant.antunit.AntUnitScriptRunner
-
Object used to create projects in order to support test isolation.
- project - Variable in class org.apache.ant.antunit.AntUnitScriptRunner
-
The project currently used.
- ProjectFactory - Interface in org.apache.ant.antunit
-
Provides project instances for AntUnit execution.
- projectHasSetup - Variable in class org.apache.ant.antunit.listener.FailureAntUnitListener.TestInfos
-
Does the project has a setUp target?
- projectHasTearDown - Variable in class org.apache.ant.antunit.listener.FailureAntUnitListener.TestInfos
-
Does the project has a tearDown target?
- projectIsDirty - Variable in class org.apache.ant.antunit.AntUnitScriptRunner
-
Indicates if a target has already be executed using this project.
- PROPERTIES - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
the properties element
- PROPERTY - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
the property element
- propertySets - Variable in class org.apache.ant.antunit.AntUnit
-
propertysets.
R
- realStdErr - Variable in class org.apache.ant.antunit.junit3.AntUnitSuite.MyProjectFactory
- realStdOut - Variable in class org.apache.ant.antunit.junit3.AntUnitSuite.MyProjectFactory
- Reference() - Constructor for class org.apache.ant.antunit.AntUnit.Reference
- REFERENCE_ID - Static variable in class org.apache.ant.antunit.LogCapturer
- references - Variable in class org.apache.ant.antunit.AntUnit.ReferenceSet
-
references inherited from parent project by antunit scripts
- ReferenceSet() - Constructor for class org.apache.ant.antunit.AntUnit.ReferenceSet
- referenceSets - Variable in class org.apache.ant.antunit.AntUnit
-
Holds references to be inherited by the test project
- refid - Variable in class org.apache.ant.antunit.ResourceExists
- regex - Variable in class org.apache.ant.antunit.AntUnit.Reference
- resource - Variable in class org.apache.ant.antunit.ResourceExists
- ResourceExists - Class in org.apache.ant.antunit
-
A condition that tests whether a given resource exists.
- ResourceExists() - Constructor for class org.apache.ant.antunit.ResourceExists
- root - Variable in class org.apache.ant.antunit.listener.XMLAntUnitListener
- run(TestResult) - Method in class org.apache.ant.antunit.junit3.AntUnitSuite
- run(TestResult) - Method in class org.apache.ant.antunit.junit3.AntUnitTestCase
-
Called by a Junit Runner that want to executes specifically this test target.
- run(RunNotifier) - Method in class org.apache.ant.antunit.junit4.AntUnitSuiteRunner
-
Runner implementation
- runCount - Variable in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
keeps track of the numer of executed targets, the failures an errors.
- runInContainer(List, AntUnitExecutionNotifier) - Method in class org.apache.ant.antunit.junit3.AntUnitSuite
-
Execute the test suite in a 'container' similar to the ant 'container'.
- runSuite(List, AntUnitExecutionNotifier) - Method in class org.apache.ant.antunit.AntUnitScriptRunner
-
Executes the suite.
- runTarget(String, AntUnitExecutionNotifier) - Method in class org.apache.ant.antunit.AntUnitScriptRunner
-
Run the specific test target, possibly between the setUp and tearDown targets if it exists.
- runTest() - Method in class org.apache.ant.antunit.junit3.AntUnitTestCase
-
Normally never used because this object delegates all execution to an AntUnitSuite.
- runTest() - Method in class org.apache.ant.antunit.junit3.ErrorTestCase
- runTest(Test, TestResult) - Method in class org.apache.ant.antunit.junit3.AntUnitSuite
S
- script - Variable in class org.apache.ant.antunit.junit3.AntUnitTestCase.TestCaseName
- scriptFile - Variable in class org.apache.ant.antunit.junit3.AntUnitSuite.MyProjectFactory
- scriptRunner - Variable in class org.apache.ant.antunit.AntUnit
-
The object responsible for the execution of the unit test.
- scriptRunner - Variable in class org.apache.ant.antunit.junit3.MultiProjectDemuxOutputStream
- SendLogTo() - Constructor for class org.apache.ant.antunit.listener.BaseAntUnitListener.SendLogTo
- SendLogTo(String) - Constructor for class org.apache.ant.antunit.listener.BaseAntUnitListener.SendLogTo
- serialVersionUID - Static variable in exception org.apache.ant.antunit.AssertionFailedException
- 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.
- SETUP - Static variable in class org.apache.ant.antunit.AntUnitScriptRunner
-
name of the magic setUp target.
- 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.
- startSuite(AntUnitExecutionNotifier) - Method in class org.apache.ant.antunit.AntUnitScriptRunner
-
Executes the suiteSetUp target if presents and report any execution error.
- 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
- stderr - Variable in class org.apache.ant.antunit.junit3.AntUnitSuite
- stdout - Variable in class org.apache.ant.antunit.junit3.AntUnitSuite
- suite - Variable in class org.apache.ant.antunit.junit3.AntUnitTestCase
-
AntUnitSuite that contains this AntUnitTestCase.
- SUITESETUP - Static variable in class org.apache.ant.antunit.AntUnitScriptRunner
-
name of the magic suiteSetUp target.
- SUITETEARDOWN - Static variable in class org.apache.ant.antunit.AntUnitScriptRunner
-
name of the magic suiteTearDown target.
- 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
T
- target - Variable in class org.apache.ant.antunit.junit3.AntUnitTestCase
-
The test target
- target - Variable in class org.apache.ant.antunit.junit3.AntUnitTestCase.TestCaseName
- target - Variable in class org.apache.ant.antunit.listener.FailureAntUnitListener.TestInfos
-
The called target.
- targetDescriptions - Variable in class org.apache.ant.antunit.junit4.AntUnitSuiteRunner
- targetFinished(BuildEvent) - Method in class org.apache.ant.antunit.AntUnit.BuildToAntUnitListener
- targetFinished(BuildEvent) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener.LogGrabber
- targetFinished(BuildEvent) - Method in class org.apache.ant.antunit.LogCapturer
-
Empty.
- targetsOrder - Variable in class org.apache.ant.antunit.junit4.AntUnitSuiteRunner
- targetStarted(BuildEvent) - Method in class org.apache.ant.antunit.AntUnit.BuildToAntUnitListener
- targetStarted(BuildEvent) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener.LogGrabber
- targetStarted(BuildEvent) - Method in class org.apache.ant.antunit.LogCapturer
-
Empty.
- taskFinished(BuildEvent) - Method in class org.apache.ant.antunit.AntUnit.BuildToAntUnitListener
- taskFinished(BuildEvent) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener.LogGrabber
- taskFinished(BuildEvent) - Method in class org.apache.ant.antunit.LogCapturer
-
Empty.
- taskStarted(BuildEvent) - Method in class org.apache.ant.antunit.AntUnit.BuildToAntUnitListener
- taskStarted(BuildEvent) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener.LogGrabber
- taskStarted(BuildEvent) - Method in class org.apache.ant.antunit.LogCapturer
-
Empty.
- TEARDOWN - Static variable in class org.apache.ant.antunit.AntUnitScriptRunner
-
name of the magic tearDown target.
- TEST - Static variable in class org.apache.ant.antunit.AntUnitScriptRunner
-
prefix that identifies test targets.
- testByTarget - Variable in class org.apache.ant.antunit.junit3.JUnitNotificationAdapter
- TESTCASE - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
the testcase element
- TestCaseName(File, String) - Constructor for class org.apache.ant.antunit.junit3.AntUnitTestCase.TestCaseName
- TestCaseName(String) - Constructor for class org.apache.ant.antunit.junit3.AntUnitTestCase.TestCaseName
- TestInfos(Project, String, String, String) - Constructor for class org.apache.ant.antunit.listener.FailureAntUnitListener.TestInfos
- testStart - Variable in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
time for the starts of the current test-suite and test-target.
- TESTSUITE - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
the testsuite element
- TESTSUITES - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
the testsuites element for the aggregate document
- testTargets - Variable in class org.apache.ant.antunit.AntUnitScriptRunner
-
List of target names
- text - Variable in class org.apache.ant.antunit.LogContains
- TIMESTAMP - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
-
timestamp of test cases
- toDir - Variable in class org.apache.ant.antunit.listener.BaseAntUnitListener
-
Directory to write reports to.
- toString() - Method in class org.apache.ant.antunit.listener.FailureAntUnitListener.TestInfos
-
Creates an <ant> call according to the stored information.
W
- wri - Variable in class org.apache.ant.antunit.listener.PlainAntUnitListener
-
Convenience layer on top of
inner
. - wri - Variable in class org.apache.ant.antunit.listener.XMLAntUnitListener
- write(byte[], int, int) - Method in class org.apache.ant.antunit.junit3.MultiProjectDemuxOutputStream
- write(int) - Method in class org.apache.ant.antunit.junit3.MultiProjectDemuxOutputStream
X
- XMLAntUnitListener - Class in org.apache.ant.antunit.listener
-
A test listener for <antunit> modelled after the XML JUnit test listener that is part of Ant.
- XMLAntUnitListener() - Constructor for class org.apache.ant.antunit.listener.XMLAntUnitListener
- XMLConstants - Interface in org.apache.ant.antunit.listener
-
Interface groups XML constants.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form