Jetif v1.8.0

jetif.ext
Class BasicSuite

java.lang.Object
  extended byjetif.Suite
      extended byjetif.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.
 
Fields inherited from class jetif.Suite
logger, name, props
 
Constructor Summary
BasicSuite()
           
 
Method Summary
protected  TestCase createTestCase(String name, String cid)
          Create a test case for testing.
protected  boolean setup()
          Set up the testing environment for this suite.
 
Methods inherited from class jetif.Suite
cleanup, createTestCases, getName, newSuite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

BasicSuite

public BasicSuite()
Method Detail

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.

Jetif v1.8.0

Copyright © 2004,2005 Vicky Wang - All Rights Reserved.