Save This Page
Home » apache-ant-1.7.1-src » org.apache.tools » ant » taskdefs » optional » junit » [javadoc | source]
org.apache.tools.ant.taskdefs.optional.junit
public final class: BatchTest [javadoc | source]
java.lang.Object
   org.apache.tools.ant.taskdefs.optional.junit.BaseTest
      org.apache.tools.ant.taskdefs.optional.junit.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.

Fields inherited from org.apache.tools.ant.taskdefs.optional.junit.BaseTest:
haltOnError,  haltOnFail,  filtertrace,  fork,  ifProperty,  unlessProperty,  formatters,  destDir,  failureProperty,  errorProperty
Constructor:
 public BatchTest(Project project) 
    create a new batchtest instance
    Parameters:
    project - the project it depends on.
Method from org.apache.tools.ant.taskdefs.optional.junit.BatchTest Summary:
add,   addFileSet,   addTestsTo,   elements,   javaToClass
Methods from org.apache.tools.ant.taskdefs.optional.junit.BaseTest:
addFormatter,   getErrorProperty,   getFailureProperty,   getFiltertrace,   getFork,   getHaltonerror,   getHaltonfailure,   getTodir,   setErrorProperty,   setFailureProperty,   setFiltertrace,   setFork,   setHaltonerror,   setHaltonfailure,   setIf,   setTodir,   setUnless
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.taskdefs.optional.junit.BatchTest Detail:
 public  void add(ResourceCollection rc) 
    Add a new ResourceCollection instance to this batchtest. Whatever the collection is, only names that are .java or .class will be considered as 'candidates'.
 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'.
  void addTestsTo(Vector v) 
    Convenient method to merge the JUnitTests of this batchtest to a Vector.
 public Enumeration elements() 
    Return all JUnitTest instances obtain by applying the fileset rules.
 public static 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