Search in sources :

Example 6 with ResumeActionImpl

use of org.eclipse.che.api.debug.shared.model.impl.action.ResumeActionImpl 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

ResumeActionImpl (org.eclipse.che.api.debug.shared.model.impl.action.ResumeActionImpl)6 Test (org.testng.annotations.Test)5 DebuggerEvent (org.eclipse.che.api.debug.shared.model.event.DebuggerEvent)3 BreakpointImpl (org.eclipse.che.api.debug.shared.model.impl.BreakpointImpl)3 ArrayList (java.util.ArrayList)2 Breakpoint (org.eclipse.che.api.debug.shared.model.Breakpoint)2 SuspendEvent (org.eclipse.che.api.debug.shared.model.event.SuspendEvent)2 Location (org.eclipse.che.api.debug.shared.model.Location)1 StackFrameDump (org.eclipse.che.api.debug.shared.model.StackFrameDump)1 BreakpointActivatedEvent (org.eclipse.che.api.debug.shared.model.event.BreakpointActivatedEvent)1 DisconnectEvent (org.eclipse.che.api.debug.shared.model.event.DisconnectEvent)1 LocationImpl (org.eclipse.che.api.debug.shared.model.impl.LocationImpl)1 StepIntoActionImpl (org.eclipse.che.api.debug.shared.model.impl.action.StepIntoActionImpl)1 StepOutActionImpl (org.eclipse.che.api.debug.shared.model.impl.action.StepOutActionImpl)1 StepOverActionImpl (org.eclipse.che.api.debug.shared.model.impl.action.StepOverActionImpl)1