org.apache.tools.ant.taskdefs.optional.junit
public final class BatchTest extends BaseTest
Create then run JUnitTest
's based on the list of files
given by the fileset attribute.
Every .java
or .class
file in the fileset is
assumed to be a testcase.
A JUnitTest
is created for each of these named classes with
basic setup inherited from the parent BatchTest
.
See Also: JUnitTest
Constructor Summary | |
---|---|
BatchTest(Project project)
create a new batchtest instance |
Method Summary | |
---|---|
void | add(ResourceCollection rc)
Add a new ResourceCollection instance to this
batchtest. |
void | addFileSet(FileSet fs)
Add a new fileset instance to this batchtest. |
Enumeration | elements()
Return all JUnitTest instances obtain by applying the fileset rules. |
static String | javaToClass(String filename)
Convenient method to convert a pathname without extension to a
fully qualified classname. |
Parameters: project the project it depends on.
Parameters: rc the new ResourceCollection containing the rules to get the testcases.
Since: Ant 1.7
Parameters: fs the new fileset containing the rules to get the testcases.
Returns: an enumeration of all elements of this batchtest that are a JUnitTest instance.
Parameters: filename the filename to "convert" to a classname.
Returns: the classname matching the filename.