Search in sources :

Example 1 with DisconnectEvent

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);
}
Also used : DebuggerEvent(org.eclipse.che.api.debug.shared.model.event.DebuggerEvent) DisconnectEvent(org.eclipse.che.api.debug.shared.model.event.DisconnectEvent) Test(org.testng.annotations.Test)

Example 2 with 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);
}
Also used : DebuggerEvent(org.eclipse.che.api.debug.shared.model.event.DebuggerEvent) DisconnectEvent(org.eclipse.che.api.debug.shared.model.event.DisconnectEvent)

Example 3 with 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);
}
Also used : ResumeActionImpl(org.eclipse.che.api.debug.shared.model.impl.action.ResumeActionImpl) DebuggerEvent(org.eclipse.che.api.debug.shared.model.event.DebuggerEvent) DisconnectEvent(org.eclipse.che.api.debug.shared.model.event.DisconnectEvent) Test(org.testng.annotations.Test)

Aggregations

DebuggerEvent (org.eclipse.che.api.debug.shared.model.event.DebuggerEvent)3 DisconnectEvent (org.eclipse.che.api.debug.shared.model.event.DisconnectEvent)3 Test (org.testng.annotations.Test)2 ResumeActionImpl (org.eclipse.che.api.debug.shared.model.impl.action.ResumeActionImpl)1