Search in sources :

Example 1 with GdbInfoBreak

use of org.eclipse.che.plugin.gdb.server.parser.GdbInfoBreak in project che by eclipse.

the class GdbTest method testBreakpoints.

@Test
public void testBreakpoints() throws Exception {
    gdb.file(file);
    gdb.breakpoint(7);
    gdb.clear(7);
    gdb.breakpoint("h.cpp", 8);
    gdb.clear("h.cpp", 8);
    gdb.breakpoint(7);
    gdb.breakpoint(8);
    GdbInfoBreak gdbInfoBreak = gdb.infoBreak();
    List<Breakpoint> breakpoints = gdbInfoBreak.getBreakpoints();
    assertEquals(breakpoints.size(), 2);
    gdb.delete();
    gdbInfoBreak = gdb.infoBreak();
    breakpoints = gdbInfoBreak.getBreakpoints();
    assertTrue(breakpoints.isEmpty());
}
Also used : Breakpoint(org.eclipse.che.api.debug.shared.model.Breakpoint) GdbInfoBreak(org.eclipse.che.plugin.gdb.server.parser.GdbInfoBreak) Test(org.testng.annotations.Test)

Aggregations

Breakpoint (org.eclipse.che.api.debug.shared.model.Breakpoint)1 GdbInfoBreak (org.eclipse.che.plugin.gdb.server.parser.GdbInfoBreak)1 Test (org.testng.annotations.Test)1