org.quilt.frontend.ant
Class BatchTest

java.lang.Object
  |
  +--org.quilt.framework.QuiltTest
        |
        +--org.quilt.frontend.ant.BatchTest
All Implemented Interfaces:
java.lang.Cloneable

public class BatchTest
extends QuiltTest

Stores Ant filesets and convert them to QuiltTests.

Author:
Jim Dixon

Constructor Summary
BatchTest(org.apache.tools.ant.Project p)
          One-arg constructor.
 
Method Summary
 void addFileSet(org.apache.tools.ant.types.FileSet fs)
          Method used by Ant to add filesets.
 void unbatch(Scheduler sch)
          Converts the fileset names into QuiltTests and adds them to the list of tests maintained by the scheduler.
 
Methods inherited from class org.quilt.framework.QuiltTest
addFormatter, addFormattersTo, clone, errorCount, failureCount, getCheckCoverage, getCheckExcludes, getCheckExcludesArray, getCheckIncludes, getCheckIncludesArray, getErrorProperty, getFailureProperty, getFiltertrace, getFork, getFormatters, getHaltOnError, getHaltOnFailure, getIfProperty, getMockTestRun, getName, getOutfile, getProperties, getRunTime, getShowOutput, getTodir, getUnlessProperty, runCount, runMe, setCheckCoverage, setCheckExcludes, setCheckIncludes, setCounts, setErrorProperty, setFailureProperty, setFiltertrace, setFork, setHaltOnError, setHaltOnFailure, setIf, setMockTestRun, setName, setOutfile, setProperties, setRunTime, setShowOutput, setTodir, setUnless, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BatchTest

public BatchTest(org.apache.tools.ant.Project p)
One-arg constructor.

Parameters:
p - The project that the QuiltTask is in.
Method Detail

addFileSet

public void addFileSet(org.apache.tools.ant.types.FileSet fs)
Method used by Ant to add filesets. Ant first calls createBatchTest, then in a second pass calls this method to add filesets.

Parameters:
fs - One of possibly many filesets within the batch test

unbatch

public void unbatch(Scheduler sch)
Converts the fileset names into QuiltTests and adds them to the list of tests maintained by the scheduler. This can only be done once; after the tests are unbatched, the vector of batch tests is deleted.

Parameters:
sch - Scheduler responsible for maintaining list of tests and scheduling the actual running of tests.


Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.