public class AntUnitScriptRunner
extends java.lang.Object
Constructor and Description |
---|
AntUnitScriptRunner(ProjectFactory prjFactory)
Create a new AntScriptRunner on the given environment.
|
Modifier and Type | Method and Description |
---|---|
org.apache.tools.ant.Project |
getCurrentProject()
Get the project currently in use.
|
java.lang.String |
getName()
Provides the name of the active script.
|
java.util.List |
getTestTartgets() |
void |
runSuite(java.util.List suiteTargets,
AntUnitExecutionNotifier notifier)
Executes the suite.
|
public AntUnitScriptRunner(ProjectFactory prjFactory) throws org.apache.tools.ant.BuildException
prjFactory
- A factory for the ant project that will contains the antunit test to execute.
The factory might be invoked multiple time in order to provide test isolation.org.apache.tools.ant.BuildException
- The project can not be parsedpublic final org.apache.tools.ant.Project getCurrentProject() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- The project can not be parsedpublic java.util.List getTestTartgets()
public java.lang.String getName()
public void runSuite(java.util.List suiteTargets, AntUnitExecutionNotifier notifier)
suiteTargets
- An ordered list of test targets. It must be a sublist of getTestTargetsnotifier
- is notified on test progress