org.apache.tools.ant.taskdefs.optional.junit
Class BatchTest
public final class BatchTest
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
.
JUnitTest
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.
|
addFormatter , getErrorProperty , getFailureProperty , getFiltertrace , getFork , getHaltonerror , getHaltonfailure , getTodir , setErrorProperty , setFailureProperty , setFiltertrace , setFork , setHaltonerror , setHaltonfailure , setIf , setTodir , setUnless |
BatchTest
public BatchTest(Project project)
create a new batchtest instance
project
- the project it depends on.
addFileSet
public void addFileSet(FileSet fs)
Add a new fileset instance to this batchtest. Whatever the fileset is,
only filename that are .java or .class will be
considered as 'candidates'.
fs
- the new fileset containing the rules to get the testcases.
elements
public final Enumeration elements()
Return all JUnitTest instances obtain by applying the fileset rules.
- an enumeration of all elements of this batchtest that are
a JUnitTest instance.
javaToClass
public static final String javaToClass(String filename)
Convenient method to convert a pathname without extension to a
fully qualified classname. For example org/apache/Whatever will
be converted to org.apache.Whatever
filename
- the filename to "convert" to a classname.
- the classname matching the filename.
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.