junit.extensions.abbot
Class TestHelper
java.lang.Object
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:
- abbot.locale.language
- abbot.locale.country
- abbot.locale.variant
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestHelper
protected TestHelper()
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