jetif.ext
Class BasicSuite
java.lang.Object
jetif.Suite
jetif.ext.BasicSuite
- public class BasicSuite
- extends Suite
This class BasicSuite represents a default suite class for most
purpose. The users only need to create they own test class, and use this suite
class as the suite class.
To use this suite class, the user should provide a property "test.class" in
the suite spec, and value of the property should be the full name of target class
to be tested.
- Author:
- Vicky Wang
|
Field Summary |
static String |
TEST_CLASS
The property name of target class: test.class.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEST_CLASS
public static final String TEST_CLASS
- The property name of target class: test.class.
The user should define a property with this name to use this suite class.
- See Also:
- Constant Field Values
BasicSuite
public BasicSuite()
createTestCase
protected TestCase createTestCase(String name,
String cid)
throws FrameworkException
- Description copied from class:
Suite
- Create a test case for testing. The implementation should provides a test case
object to run the test case.
- Overrides:
createTestCase in class Suite
- Parameters:
name - the name of the test case.cid - the UID of the test case.
- Returns:
- a test case object.
- Throws:
FrameworkException
setup
protected boolean setup()
- Description copied from class:
Suite
- Set up the testing environment for this suite.
The framework will skip the whole suite if the return value is false.
- Overrides:
setup in class Suite
- Returns:
- true if setup is completed successfully.
Copyright © 2004,2005 Vicky Wang - All Rights Reserved.