org.apache.ant.antunit.junit3
public class AntUnitSuite extends TestSuite
Constructor and Description |
---|
AntUnitSuite(java.io.File scriptFile,
java.lang.Class rootClass)
Create a JUnit TestSuite that when executed will run the given ant
script.
Note that it is the responsibility of the caller to give the correct File reference. |
Modifier and Type | Method and Description |
---|---|
org.apache.tools.ant.BuildException |
getAntInitialisationException() |
boolean |
hasAntInitError() |
void |
run(TestResult testResult) |
void |
runInContainer(java.util.List targetList,
AntUnitExecutionNotifier notifier)
Execute the test suite in a 'container' similar to the ant 'container'.
|
void |
runTest(Test test,
TestResult result) |
public AntUnitSuite(java.io.File scriptFile, java.lang.Class rootClass)
scriptFile
- AntUnit script filerootClass
- The test class that creates this suite. This is used to give
a name to the suite so that an IDE can reexecute this suite.public void run(TestResult testResult)
public void runTest(Test test, TestResult result)
public void runInContainer(java.util.List targetList, AntUnitExecutionNotifier notifier)
targetList
- The list of test target to executenotifier
- The AntUnit notifier that will receive execution notificationspublic boolean hasAntInitError()
public org.apache.tools.ant.BuildException getAntInitialisationException()