com.objectwave.test
Class TestRunner

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

public class TestRunner
extends java.lang.Object

Hide the details of the JUnit test framework. This level of indirection will allow the development of and integration with new test frameworks without changing the system under test.

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

Constructor Summary
TestRunner()
           
 
Method Summary
 void add(UnitTest testFactory)
          Assemble a list of tests from the provided testFactory.
 int countTestCases()
           
static junit.framework.TestSuite createSuite(UnitTest unitTestFactory)
          Use reflection to create all of the tests.
 int run()
          Main processing method for the TestRunner object
static void run(UnitTest unitTestFactory, java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestRunner

public TestRunner()
Method Detail

createSuite

public static junit.framework.TestSuite createSuite(UnitTest unitTestFactory)
Use reflection to create all of the tests. Every method that begins with the work "test" will automatically be included in the suite.

Parameters:
unitTestFactory - The object from which all public "test" methods will be identified.
Returns:

run

public static void run(UnitTest unitTestFactory,
                       java.lang.String[] args)
Parameters:
unitTestFactory - The object from which all public "test" methods will be identified.
args -

add

public void add(UnitTest testFactory)
Assemble a list of tests from the provided testFactory.

Parameters:
testFactory -

run

public int run()
Main processing method for the TestRunner object


countTestCases

public int countTestCases()
Returns: