Home Corporate Contacts

TETware Java Documentation



All Packages Class Hierarchy This Package Previous Next Index

Class TET.ChildTestCase

java.lang.Object
   |
   +----TET.TestCase
           |
           +----TET.ChildTestCase

public abstract class ChildTestCase
extends TestCase
ChildTestCase is a base class for child test cases, i.e. those executed by calls to tet_spawn() or tet_exec().

To create a new child test case, derive a new class from ChildTestCase and implement the tet_main() method.

Attempts to load this class in the same virtual machine as SimpleTestCase will fail. It is only permissible to have one type of test case in one virtual machine.


Constructor Index

 o ChildTestCase()

Method Index

 o main(String, String[], ChildTestCase)
Begin execution of a test case using the default test session.
 o main(String[], ChildTestCase)
Begin execution of a child test case using the default test session.
 o tet_main(TestSession, String[])
Run child test case.

Constructors

 o ChildTestCase
 public ChildTestCase()

Methods

 o main
 public static void main(String args[],
                         ChildTestCase tc)
Begin execution of a child test case using the default test session. The name of the test case is taken from the class of the tc argument.

Parameters:
args - the command line arguments.
tc - the testcase.
 o main
 public static void main(String pname,
                         String args[],
                         ChildTestCase tc)
Begin execution of a test case using the default test session.

Parameters:
pname - the name of the test case.
args - the command line arguments.
tc - the testcase.
 o tet_main
 public abstract int tet_main(TestSession ts,
                              String args[])
Run child test case. Implementations of this method should either return, or exit using ts.tet_exit().

Parameters:
ts - the TestSession object for this test run.
args - command line arguments as passed from the parent process.
Returns:
0 for success, non-zero on failure.


All Packages Class Hierarchy This Package Previous Next Index

Home Contacts Legal Copyright Corporate News

Copyright © The Open Group 1995-2012, All Rights Reserved