use of org.eclipse.che.api.debug.shared.model.event.DisconnectEvent in project che by eclipse.
the class JavaDebuggerTest method testDisconnect.
@Test(priority = 12)
public void testDisconnect() throws Exception {
debugger.disconnect();
DebuggerEvent debuggerEvent = events.take();
assertTrue(debuggerEvent instanceof DisconnectEvent);
}
use of org.eclipse.che.api.debug.shared.model.event.DisconnectEvent in project che by eclipse.
the class GdbDebuggerTest method disconnect.
private void disconnect() throws DebuggerException, InterruptedException {
gdbDebugger.disconnect();
assertEquals(events.size(), 1);
DebuggerEvent debuggerEvent = events.take();
assertTrue(debuggerEvent instanceof DisconnectEvent);
}
use of org.eclipse.che.api.debug.shared.model.event.DisconnectEvent in project che by eclipse.
the class NodeJsDebuggerTest method testResume.
@Test
public void testResume() throws Exception {
debugger.resume(new ResumeActionImpl());
ArgumentCaptor<DebuggerEvent> eventCaptor = ArgumentCaptor.forClass(DebuggerEvent.class);
verify(callback, timeout(5000)).onEvent(eventCaptor.capture());
assertTrue(eventCaptor.getValue() != null);
assertTrue(eventCaptor.getValue() instanceof DisconnectEvent);
}
Aggregations