All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----org.ajug.jsl.jester.tester.Tester
Example:
java -nojit org.ajug.jsl.jester.tester.Tester org.ajug.jsl.jester.samples.TestContainer
The command line syntax documentation for Tester is:
Usage: java org.ajug.jsl.jester.tester.Tester testclassname [-options]
Note that testclassname must be a class implementing Test.
-nocatch Do not catch exceptions. Useful for use in debegger
to allow going right to line with problem.
Our exception policies are:
1. If the -nocatch option is not used, we catch all exceptions. This allows an entire suite to run to completion, with info about the exceptions encountered saved for reporting. Otherwise the following rules are used:Note that is all cases2. If an exception occurs in
beforeTest()thenrunTest()is not called and child tests are not run, butafterTest()is called. Other remaining tests will be run.3. If an exception occurs in
runTest()then child tests are skipped butafterTest()is still called.
afterTest() is still called.
Property Passing Policy - Containers can pass properties to children according to this policy:
1. If property name is already in child don't pass. This
allows shadowing.
2. If a container's parent has the same property instance
and the instance is not inherited, don't add. Note
that by comparing instances we allow the container to
shadow it's parent.
3. Else add to the container's child.
public Tester()
public static void main(String args[])
public SuiteState getSuiteState()
public SuiteOptions getSuiteOptions()
public void runSuite()
public void runSuite(Test rootTest)
public Test createTestTree(String className)
Later the Test returned can be run via
runSuite(Test).
All Packages Class Hierarchy This Package Previous Next Index