|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTET.TestCase
TET.ChildTestCase
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 |
public ChildTestCase()
Method Detail |
public static void main(java.lang.String[] args, ChildTestCase tc)
tc
argument.
args
- the command line arguments.tc
- the testcase.public static void main(java.lang.String pname, java.lang.String[] args, ChildTestCase tc)
pname
- the name of the test case.args
- the command line arguments.tc
- the testcase.public abstract int tet_main(TestSession ts, java.lang.String[] args)
ts.tet_exit()
.
ts
- the TestSession
object for this
test run.args
- command line arguments as passed from the
parent process.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |