JDWPConstants.EventKind.EXCEPTION,
parsedEvents[0].getEventKind(),
JDWPConstants.EventKind.getName(JDWPConstants.EventKind.EXCEPTION),
JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind()));
long returnedThread = ((ParsedEvent.Event_EXCEPTION)parsedEvents[0]).getThreadID();
Location returnedExceptionLoc =((ParsedEvent.Event_EXCEPTION)parsedEvents[0]).getLocation();
// assert that exception thread is not null
logWriter.println(">> testExceptionEventLocation: returnedThread = " + returnedThread);
assertTrue("Returned exception ThreadID is null,", returnedThread != 0);
// assert that exception location is not null
logWriter.println(">> testExceptionEventLocation: returnedExceptionLoc = " + returnedExceptionLoc);
assertTrue("Returned exception location is null,", returnedExceptionLoc != null);
// assert that top stack frame location is not null
Location topFrameLoc = getTopFrameLocation(returnedThread);
logWriter.println(">> testExceptionEventLocation: topFrameLoc = " + topFrameLoc);
assertTrue("Returned top stack frame location is null,", topFrameLoc != null);
// assert that locations of exception and top frame are equal
assertEquals("Different exception and top frame location tag,", returnedExceptionLoc.tag, topFrameLoc.tag);