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

Constructor Index

 o TestSuite()

Method Index

 o addTest(Test)
Adds a test to the suite.
 o countTestCases()
Counts the number of test cases that will be run by this test.
 o run(TestResult)
Runs the tests and collects their result in a TestResult.
 o toString()
Returns a string representation of the test suite

Constructors

 o TestSuite
 public TestSuite()

Methods

 o run
 public void run(TestResult result)
Runs the tests and collects their result in a TestResult.

 o addTest
 public void addTest(Test test)
Adds a test to the suite.

 o countTestCases
 public int countTestCases()
Counts the number of test cases that will be run by this test.

 o 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