A B C D E F G H I L M N O P R S T X

A

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.
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.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.PlainAntUnitListener
 
addFailure(String, AssertionFailedException) - Method in class org.apache.ant.antunit.listener.XMLAntUnitListener
 
addPropertySet(PropertySet) - Method in class org.apache.ant.antunit.AntUnit
Add a PropertySet.
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
 
AntUnitListener - Interface in org.apache.ant.antunit
A test listener for <antunit>.
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
 
AssertTask - Class in org.apache.ant.antunit
Exits the active build, giving an additional message if the single nested condition fails.
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

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.AntUnitLogLevel() - Constructor for class org.apache.ant.antunit.listener.BaseAntUnitListener.AntUnitLogLevel
 
BaseAntUnitListener.LogGrabber - Class in org.apache.ant.antunit.listener
 
BaseAntUnitListener.LogGrabber() - Constructor for class org.apache.ant.antunit.listener.BaseAntUnitListener.LogGrabber
 
BaseAntUnitListener.SendLogTo - Class in org.apache.ant.antunit.listener
 
BaseAntUnitListener.SendLogTo() - Constructor for class org.apache.ant.antunit.listener.BaseAntUnitListener.SendLogTo
 
BaseAntUnitListener.SendLogTo(String) - Constructor for class org.apache.ant.antunit.listener.BaseAntUnitListener.SendLogTo
 
BOTH - Static variable in class org.apache.ant.antunit.listener.BaseAntUnitListener.SendLogTo
 
BUILD_FILE - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
name of the build file.
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.listener.BaseAntUnitListener.LogGrabber
 
buildStarted(BuildEvent) - Method in class org.apache.ant.antunit.LogCapturer
Empty.

C

close(OutputStream) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
 
compareTo(Object) - Method in class org.apache.ant.antunit.listener.FailureAntUnitListener.TestInfos
 

D

DEFAULT_MESSAGE - Static variable in exception org.apache.ant.antunit.AssertionFailedException
 

E

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.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.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.
eval() - Method in class org.apache.ant.antunit.LogContains
 
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
 
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
 

F

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.
FailureAntUnitListener.TestInfos(Project, String, String, String) - Constructor for class org.apache.ant.antunit.listener.FailureAntUnitListener.TestInfos
 
failureCount - Variable in class org.apache.ant.antunit.listener.BaseAntUnitListener
keeps track of the numer of executed targets, the failures an errors.
FILE - Static variable in class org.apache.ant.antunit.listener.BaseAntUnitListener.SendLogTo
 

G

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.
getErrLog() - 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.
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
 
getOut(String) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener
 
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.
getWarnLog() - 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.
HOSTNAME - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
name of host running the tests

I

isExists() - Method in class org.apache.ant.antunit.LogContent
 

L

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.

M

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.

N

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.

O

org.apache.ant.antunit - package org.apache.ant.antunit
 
org.apache.ant.antunit.listener - package org.apache.ant.antunit.listener
 

P

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
 
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

R

REFERENCE_ID - Static variable in class org.apache.ant.antunit.LogCapturer
 
runCount - Variable in class org.apache.ant.antunit.listener.BaseAntUnitListener
keeps track of the numer of executed targets, the failures an errors.

S

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
 
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.
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
 
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.
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.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.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

T

targetFinished(BuildEvent) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener.LogGrabber
 
targetFinished(BuildEvent) - Method in class org.apache.ant.antunit.LogCapturer
Empty.
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.listener.BaseAntUnitListener.LogGrabber
 
taskFinished(BuildEvent) - Method in class org.apache.ant.antunit.LogCapturer
Empty.
taskStarted(BuildEvent) - Method in class org.apache.ant.antunit.listener.BaseAntUnitListener.LogGrabber
 
taskStarted(BuildEvent) - Method in class org.apache.ant.antunit.LogCapturer
Empty.
TESTCASE - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
the testcase element
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
TIMESTAMP - Static variable in interface org.apache.ant.antunit.listener.XMLConstants
timestamp of test cases
toString() - Method in class org.apache.ant.antunit.listener.FailureAntUnitListener.TestInfos
Creates an call according to the stored information.

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.

A B C D E F G H I L M N O P R S T X

Copyright © 2011 The Apache Software Foundation. All Rights Reserved.