junit.extensions.abbot
Class TestHelper

java.lang.Object
  extended by junit.extensions.abbot.TestHelper
Direct Known Subclasses:
RepeatHelper

public class TestHelper
extends Object

Provides automatic test suite generation given command-line arguments. Also allows for a single test to be run if it is specified. Supports "-v" (verbose) to display each test's name prior to running the test (aids in identifying which test failed when the VM crashes). The locale may be set explicitly by the following system properties:


Constructor Summary
protected TestHelper()
           
 
Method Summary
protected static Test collectTests(String[] args, Class testClass)
           
static TestSuite generateSuite(Class[] classes)
           
static File getClasspathDirectory(Class test)
          Returns the classpath directory in which the given class is found.
protected static String[] parseArgs(String[] args)
           
protected static void runTest(Test test)
           
static void runTests(String[] args, Class testClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestHelper

protected TestHelper()
Method Detail

getClasspathDirectory

public static File getClasspathDirectory(Class test)
Returns the classpath directory in which the given class is found.


generateSuite

public static TestSuite generateSuite(Class[] classes)

parseArgs

protected static String[] parseArgs(String[] args)

collectTests

protected static Test collectTests(String[] args,
                                   Class testClass)
                            throws NoSuchMethodException,
                                   InstantiationException,
                                   IllegalAccessException,
                                   InvocationTargetException
Throws:
NoSuchMethodException
InstantiationException
IllegalAccessException
InvocationTargetException

runTest

protected static void runTest(Test test)

runTests

public static void runTests(String[] args,
                            Class testClass)


Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge