org.woopi.ant.taskdefs.junit
Class BatchTest

java.lang.Object
  extended by org.woopi.ant.taskdefs.junit.BaseTest
      extended by org.woopi.ant.taskdefs.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 .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

Field Summary
 
Fields inherited from class org.woopi.ant.taskdefs.junit.BaseTest
destDir, errorProperty, failureProperty, filtertrace, fork, formatters, haltOnError, haltOnFail, ifProperty, unlessProperty
 
Constructor Summary
BatchTest(org.apache.tools.ant.Project project)
          create a new batchtest instance
 
Method Summary
 void addFileSet(org.apache.tools.ant.types.FileSet fs)
          Add a new fileset instance to this batchtest.
 java.util.Enumeration 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.
 
Methods inherited from class org.woopi.ant.taskdefs.junit.BaseTest
addFormatter, getErrorProperty, getFailureProperty, getFiltertrace, getFork, getHaltonerror, getHaltonfailure, getTodir, setErrorProperty, setFailureProperty, setFiltertrace, setFork, setHaltonerror, setHaltonfailure, setIf, setTodir, setUnless
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchTest

public BatchTest(org.apache.tools.ant.Project project)
create a new batchtest instance

Parameters:
project - the project it depends on.
Method Detail

addFileSet

public void addFileSet(org.apache.tools.ant.types.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'.

Parameters:
fs - the new fileset containing the rules to get the testcases.

elements

public final java.util.Enumeration elements()
Return all JUnitTest instances obtain by applying the fileset rules.

Returns:
an enumeration of all elements of this batchtest that are a JUnitTest instance.

javaToClass

public static final java.lang.String javaToClass(java.lang.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

Parameters:
filename - the filename to "convert" to a classname.
Returns:
the classname matching the filename.


Copyright 2000-${year} Apache Software Foundation. All Rights Reserved.