receiveEvent = debuggeeWrapper.vmMirror.receiveEvent();
} catch (TestErrorException e) {
printErrorAndFail("There is no event received.");
}
ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent);
Event_METHOD_EXIT event = (Event_METHOD_EXIT)parsedEvents[0];
assertEquals("Invalid number of events,", 1, parsedEvents.length);
assertEquals("Invalid event kind,",
JDWPConstants.EventKind.METHOD_EXIT,
event.getEventKind(),
JDWPConstants.EventKind.getName(JDWPConstants.EventKind.METHOD_EXIT),
JDWPConstants.EventKind.getName(event.getEventKind()));
long refID = event.getLocation().classID;
String expectedSignature = "Lorg/apache/harmony/jpda/tests/jdwp/Events/MethodExitWithReturnValueDebuggee;";
String actualSignature = debuggeeWrapper.vmMirror.getReferenceTypeSignature(refID);
assertEquals("Invalid class signature of method caller,",expectedSignature,actualSignature);
}