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.
-
ChildTestCase()
-
-
main(String, String[], ChildTestCase)
- Begin execution of a test case using the default test session.
-
main(String[], ChildTestCase)
- Begin execution of a child test case using the default test session.
-
tet_main(TestSession, String[])
- Run child test case.
ChildTestCase
public ChildTestCase()
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.
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.
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