} else {
// PASS
logger.log(Level.FINE, "Method returned true as expected.");
}
JrmpExporter je3 = createJrmpExporter();
TestRemoteInterface stub = (TestRemoteInterface) je3.export(tro);
Unexporter u = new Unexporter(je3, false);
logger.log(Level.FINE,
"Start thread which will invoke unexport method"
+ " of constructed JrmpExporter3 with 'false' value...");
u.start();
stub.wait(new Integer(5000));
uRes = u.getResult();
if (uRes) {
// FAIL
throw new TestException(
"performed unexport method invocation of constructed "
+ "JrmpExporter3 with 'false' value while remote "
+ "call is in progress has returned true "
+ "while false is expected.");
} else {
// PASS
logger.log(Level.FINE, "Method returned false as expected.");
}
u = new Unexporter(je3, true);
logger.log(Level.FINE,
"Start thread which will invoke unexport method"
+ " of constructed JrmpExporter3 with 'true' value...");
u.start();
stub.wait(new Integer(5000));
uRes = u.getResult();
if (!uRes) {
// FAIL
throw new TestException(