TET
Class ChildTestCase

java.lang.Object
  extended byTET.TestCase
      extended byTET.ChildTestCase

public abstract class ChildTestCase
extends TestCase

ChildTestCase is a base class for child test cases; that is: 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 Summary
ChildTestCase()
           
 
Method Summary
static void main(java.lang.String[] args, ChildTestCase tc)
          Begin execution of a child test case using the default test session.
static void main(java.lang.String pname, java.lang.String[] args, ChildTestCase tc)
          Begin execution of a test case using the default test session.
abstract  int tet_main(TestSession ts, java.lang.String[] args)
          Run child test case.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildTestCase

public ChildTestCase()
Method Detail

main

public static void main(java.lang.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(java.lang.String pname,
                        java.lang.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,
                             java.lang.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.