com.objectwave.test
Class BatchRunner

java.lang.Object
  |
  +--com.objectwave.test.BatchRunner

public class BatchRunner
extends java.lang.Object

Recurse from the current user directory and find all .class files that are UnitTest and add to our list of tests.

Version:
$Id: BatchRunner.java,v 2.1 2002/03/09 17:58:34 dave_hoag Exp $
Author:
Dave Hoag

Constructor Summary
BatchRunner()
           
 
Method Summary
protected static void addTestFromFile(java.lang.String fileName, TestRunner testRunner)
          Similar but different than the other jar method.
static void main(java.lang.String[] args)
          Search the current directory, and subdirectories, for class files, and jars containing class files, that are UnitTests as defined by the JUnit test framework.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchRunner

public BatchRunner()
Method Detail

main

public static void main(java.lang.String[] args)
Search the current directory, and subdirectories, for class files, and jars containing class files, that are UnitTests as defined by the JUnit test framework. A pattern can be provided that class files much match in order to investigate the nature of those classes.

Parameters:
args - The arguments passed on the command line. Only the first argument is used and it is optional.

addTestFromFile

protected static void addTestFromFile(java.lang.String fileName,
                                      TestRunner testRunner)
                               throws java.io.IOException
Similar but different than the other jar method. This will look at every class in the jar file as a potential test, patterns are ignored.

Parameters:
fileName - The feature to be added to the TestFromFile attribute
Throws:
java.io.IOException - Description of Exception