|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--unitee.client.AbstractStreamable | +--unitee.client.RemoteTestStub | +--unitee.client.RemoteTestCaseStub
Fields inherited from class unitee.client.AbstractStreamable |
objectID |
Constructor Summary | |
RemoteTestCaseStub()
|
Method Summary | |
void |
init(TestParameters params)
Initializes the TestCase with the given test parameters. |
void |
test(java.io.PrintStream output)
Runs the test. |
Methods inherited from class unitee.client.RemoteTestStub |
asSuite,
asTestCase,
getName,
getParent,
getQualifiedName,
getTestParameters,
init,
setName,
setParent,
setTestParameters,
test |
Methods inherited from class unitee.client.AbstractStreamable |
read,
write |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RemoteTestCaseStub()
Method Detail |
public void init(TestParameters params) throws ParameterException
public void init(TestParameters params) throws ParameterException {
bytes = params.getBytesArray("data");
try {
optionalParam = params.getString("optionalParam");
}
catch(MissingParameterException mpe) {
// do nothing
}
}
params
- The object containing the test data (parameters).public void test(java.io.PrintStream output) throws java.lang.Throwable
The test case developer should not try to catch any exception just to print the exception stack trace. Instead , the test case should focus on the methods to be tested using the given test parameters passed in via init(). If the test developer developes pesimistic test cases (which are recommanded) , any exception that is expected to be raised under these conditions , may be logged , but it must not fail the Test.
output
- The output stream to which the test case should write
diagnostics and informatories.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |