Class BatchTest
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.optional.junit.BaseTest
- 
- org.apache.tools.ant.taskdefs.optional.junit.BatchTest
 
 
- 
 public final class BatchTest extends BaseTest Create then run JUnitTest's based on the list of files given by the fileset attribute.Every .javaor.classfile in the fileset is assumed to be a testcase. AJUnitTestis created for each of these named classes with basic setup inherited from the parentBatchTest.- See Also:
- JUnitTest
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.tools.ant.taskdefs.optional.junit.BaseTestdestDir, errorProperty, failureProperty, filtertrace, fork, formatters, haltOnError, haltOnFail, ifProperty, unlessProperty
 
- 
 - 
Method SummaryModifier and Type Method Description voidadd(ResourceCollection rc)Add a new ResourceCollection instance to this batchtest.voidaddFileSet(FileSet fs)Add a new fileset instance to this batchtest.java.util.Enumeration<JUnitTest>elements()Return allJUnitTestinstances obtain by applying the fileset rules.static java.lang.StringjavaToClass(java.lang.String filename)Convenient method to convert a pathname without extension to a fully qualified classname.- 
Methods inherited from class org.apache.tools.ant.taskdefs.optional.junit.BaseTestaddFormatter, getErrorProperty, getFailureProperty, getFiltertrace, getFork, getHaltonerror, getHaltonfailure, getIfCondition, getTodir, getUnlessCondition, isSkipNonTests, setErrorProperty, setFailureProperty, setFiltertrace, setFork, setHaltonerror, setHaltonfailure, setIf, setIf, setSkipNonTests, setTodir, setUnless, setUnless
 
- 
 
- 
- 
- 
Constructor Detail- 
BatchTestpublic BatchTest(Project project) create a new batchtest instance- Parameters:
- project- the project it depends on.
 
 
- 
 - 
Method Detail- 
addFileSetpublic void addFileSet(FileSet fs) Add a new fileset instance to this batchtest. Whatever the fileset is, only filename that are.javaor.classwill be considered as 'candidates'.- Parameters:
- fs- the new fileset containing the rules to get the testcases.
 
 - 
addpublic void add(ResourceCollection rc) Add a new ResourceCollection instance to this batchtest. Whatever the collection is, only names that are.javaor.classwill be considered as 'candidates'.- Parameters:
- rc- the new ResourceCollection containing the rules to get the testcases.
- Since:
- Ant 1.7
 
 - 
elementspublic java.util.Enumeration<JUnitTest> elements() Return allJUnitTestinstances obtain by applying the fileset rules.- Returns:
- an enumeration of all elements of this batchtest that are
 a JUnitTestinstance.
 
 - 
javaToClasspublic static java.lang.String javaToClass(java.lang.String filename) Convenient method to convert a pathname without extension to a fully qualified classname. For exampleorg/apache/Whateverwill be converted toorg.apache.Whatever- Parameters:
- filename- the filename to "convert" to a classname.
- Returns:
- the classname matching the filename.
 
 
- 
 
-