} else {
// PASS
logger.log(Level.FINE, "Method returned true as expected.");
}
IiopExporter ie3 = createIiopExporter();
TestRemoteInterface stub = (TestRemoteInterface) ie3.export(tro);
// bind stub to the ORB manually if needed
if ((cType == NOARG_FACTORY) || useNullOrb) {
connectStub(stub);
}
Unexporter u = new Unexporter(ie3, false);
logger.log(Level.FINE,
"Start thread which will invoke unexport method"
+ " of constructed IiopExporter3 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 "
+ "IiopExporter3 with 'false' value while remote "
+ "call is in progress has returned false "
+ "while true is expected.");
} else {
// PASS
logger.log(Level.FINE, "Method returned true as expected.");
}
IiopExporter ie4 = createIiopExporter();
stub = (TestRemoteInterface) ie4.export(tro);
// bind stub to the ORB manually if needed
if ((cType == NOARG_FACTORY) || useNullOrb) {
connectStub(stub);
}
u = new Unexporter(ie4, true);
logger.log(Level.FINE,
"Start thread which will invoke unexport method"
+ " of constructed IiopExporter4 with 'true' value...");
u.start();
stub.wait(new Integer(5000));
uRes = u.getResult();
if (!uRes) {
// FAIL
throw new TestException(