|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ant.antunit.AntUnitScriptRunner
public class AntUnitScriptRunner
Run antunit tests suites. This AntUnitScriptRunner is responsible for the management of the ant project and the correct invocation the target (taking into account properly the [case]setUp and [case]tearDown targets). The user can however provide the order of the test targets and or can filter the list of test targets to execute. The user must also provide its ProjectFactory and an AntUnitExecutionNotifier.
Constructor Summary | |
---|---|
AntUnitScriptRunner(ProjectFactory prjFactory)
Create a new AntScriptRunner on the given environment. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AntUnitScriptRunner(ProjectFactory prjFactory) throws 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.
BuildException
- The project can not be parsedMethod Detail |
---|
public final Project getCurrentProject() throws BuildException
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
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |