All Packages Class Hierarchy This Package Previous Next Index
Class test.textui.TestRunner
java.lang.Object
|
+----test.textui.TestRunner
- public class TestRunner
- extends Object
A command line based tool to run tests.
TestRunner expects as its only argument the name of a class with a suite
method. The suite method should return a test to be run.
TestRunner prints out a trace as the tests are executed followed by a
summary at the end.
Here is the synopsis:
java test.testui.TestRunner [-wait] VectorTest
-
TestRunner()
-
-
main(String[])
-
-
run(Test)
- Runs a single test and collects its results.
TestRunner
public TestRunner()
main
public static void main(String argv[])
run
public static void run(Test suite)
- Runs a single test and collects its results.
This method can be used to start a test run
from your program.
public static void main (String[] args) {
test.textui.TestRunner.run(suite());
}
All Packages Class Hierarchy This Package Previous Next Index