private void receiveResponse() throws Exception {
String title = myClassName + " : ReceiveClientResponse : ";
String request1 = monitor.request;
AsyncService service = new AsyncService();
AsyncPort port = getPort(service);
// wait a bit to make sure that the server has the request;
Thread.sleep(1000);
// check the waiting request
TestLogger.logger.debug(title + " port.isAsleep(" + request1 + ") #1 being submitted....");
String asleepWithCallback1 = port.isAsleep(request1);
TestLogger.logger.debug(
title + " port.isAsleep(" + request1 + ") #1 = [" + asleepWithCallback1 + "]");
assertEquals(request1, asleepWithCallback1);
// wakeup the waiting request
TestLogger.logger.debug(title + " port.wakeUp(request1) #1 being submitted....");
String wake1 = port.wakeUp(request1);
monitor.receiverThreadRequestReceivedTime = System.currentTimeMillis();
assertEquals(request1, wake1);
TestLogger.logger.debug(title + " port.wakeUp(" + request1 + ") #1 = [" + wake1 + "]");
// wait a bit..