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());
}
Aggregations