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
.
JUnitTest
destDir, errorProperty, failureProperty, filtertrace, fork, formatters, haltOnError, haltOnFail, ifProperty, unlessProperty
Constructor and Description |
---|
BatchTest(Project project)
create a new batchtest instance
|
Modifier and Type | Method and Description |
---|---|
void |
add(ResourceCollection rc)
Add a new ResourceCollection instance to this
batchtest.
|
void |
addFileSet(FileSet fs)
Add a new fileset instance to this batchtest.
|
java.util.Enumeration<JUnitTest> |
elements()
Return all
JUnitTest instances obtain by applying the fileset rules. |
static java.lang.String |
javaToClass(java.lang.String filename)
Convenient method to convert a pathname without extension to a
fully qualified classname.
|
addFormatter, getErrorProperty, getFailureProperty, getFiltertrace, getFork, getHaltonerror, getHaltonfailure, getIfCondition, getTodir, getUnlessCondition, isSkipNonTests, setErrorProperty, setFailureProperty, setFiltertrace, setFork, setHaltonerror, setHaltonfailure, setIf, setIf, setSkipNonTests, setTodir, setUnless, setUnless
public BatchTest(Project project)
project
- the project it depends on.public void addFileSet(FileSet fs)
.java
or .class
will be
considered as 'candidates'.fs
- the new fileset containing the rules to get the testcases.public void add(ResourceCollection rc)
.java
or .class
will be considered as
'candidates'.rc
- the new ResourceCollection containing the rules to
get the testcases.public java.util.Enumeration<JUnitTest> elements()
JUnitTest
instances obtain by applying the fileset rules.JUnitTest
instance.public static java.lang.String javaToClass(java.lang.String filename)
org/apache/Whatever
will
be converted to org.apache.Whatever
filename
- the filename to "convert" to a classname.