All Packages Class Hierarchy This Package Previous Next Index
Class test.framework.TestSuite
java.lang.Object
|
+----test.framework.TestSuite
- public class TestSuite
- extends Object
- implements Test
A TestSuite
is a Composite
of Tests.
It runs a collection of test cases. Here is an example using
the dynamic test definition.
TestSuite suite= new TestSuite();
suite.addTest(new MathTest("testAdd"));
suite.addTest(new MathTest("testDivideByZero"));
- See Also:
- Test
-
TestSuite()
-
-
addTest(Test)
- Adds a test to the suite.
-
countTestCases()
- Counts the number of test cases that will be run by this test.
-
run(TestResult)
- Runs the tests and collects their result in a TestResult.
-
toString()
- Returns a string representation of the test suite
TestSuite
public TestSuite()
run
public void run(TestResult result)
- Runs the tests and collects their result in a TestResult.
addTest
public void addTest(Test test)
- Adds a test to the suite.
countTestCases
public int countTestCases()
- Counts the number of test cases that will be run by this test.
toString
public String toString()
- Returns a string representation of the test suite
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index