| com.reeltwo.jumble.fast.FlatTestSuite
All known Subclasses: com.reeltwo.jumble.fast.TimingTestSuite, com.reeltwo.jumble.fast.JumbleTestSuite,
FlatTestSuite | public class FlatTestSuite extends TestSuite (Code) | | A test suite containing other tests, not test suites. If test suites are
added, they are flattened. This is useful for ordering tests in Jumble.
author: Tin Pavlinic version: $Revision: 496 $ |
Method Summary | |
public void | addTest(Test t) Since this class is used mainly for timing tests, the suite hierarchy
becomes meaningless, so we want to break up the hierarchy and only get the
leaf tests. | public void | addTestSuite(Class testClass) Adds the test suite specified by a class using the suite()
method first. |
FlatTestSuite | public FlatTestSuite()(Code) | | Constructs a new FlatTestSuite. Just calls the parent constructor.
|
FlatTestSuite | public FlatTestSuite(Class theClass)(Code) | | Constructs a new FlatTestSuite. Checks for a suite() method.
If it exists, it uses that, otherwise uses JUnit's reflection method.
Parameters: theClass - the class to construct the test suite from. |
FlatTestSuite | public FlatTestSuite(Class theClass, String name)(Code) | | Constructs a new FlatTestSuite. Just calls the parent constructor.
Parameters: theClass - the class to construct the test suite from. Parameters: name - the name of the test suite |
FlatTestSuite | public FlatTestSuite(String name)(Code) | | Constructs a new FlatTestSuite. Just calls the parent constructor.
Parameters: name - the neame of the test suite |
addTest | public void addTest(Test t)(Code) | | Since this class is used mainly for timing tests, the suite hierarchy
becomes meaningless, so we want to break up the hierarchy and only get the
leaf tests.
|
addTestSuite | public void addTestSuite(Class testClass)(Code) | | Adds the test suite specified by a class using the suite()
method first.
|
|
|