use of nl.tudelft.watchdog.core.logic.event.eventtypes.debugging.BreakpointAddEvent in project watchdog by TestRoots.
the class EventJsonConverterTest method testJsonMethodBreakpointAddEventRepresentation.
@Test
public void testJsonMethodBreakpointAddEventRepresentation() {
BreakpointAddEvent event = new BreakpointAddEvent(1, BreakpointType.METHOD, new Date());
ArrayList<WatchDogItem> events = createSampleEvents(event);
assertEquals("[{\"bh\":1,\"bt\":\"me\",\"et\":\"ba\",\"ts\":1,\"ss\":\"\"," + pasteWDVAndClient() + "}]", transferer.toJson(events));
}
use of nl.tudelft.watchdog.core.logic.event.eventtypes.debugging.BreakpointAddEvent in project watchdog by TestRoots.
the class EventJsonConverterTest method testJsonExceptionBreakpointAddEventRepresentation.
@Test
public void testJsonExceptionBreakpointAddEventRepresentation() {
BreakpointAddEvent event = new BreakpointAddEvent(1, BreakpointType.EXCEPTION, new Date());
ArrayList<WatchDogItem> events = createSampleEvents(event);
assertEquals("[{\"bh\":1,\"bt\":\"ex\",\"et\":\"ba\",\"ts\":1,\"ss\":\"\"," + pasteWDVAndClient() + "}]", transferer.toJson(events));
}
use of nl.tudelft.watchdog.core.logic.event.eventtypes.debugging.BreakpointAddEvent in project watchdog by TestRoots.
the class EventJsonConverterTest method testJsonFieldBreakpointAddEventRepresentation.
@Test
public void testJsonFieldBreakpointAddEventRepresentation() {
BreakpointAddEvent event = new BreakpointAddEvent(1, BreakpointType.FIELD, new Date());
ArrayList<WatchDogItem> events = createSampleEvents(event);
assertEquals("[{\"bh\":1,\"bt\":\"fi\",\"et\":\"ba\",\"ts\":1,\"ss\":\"\"," + pasteWDVAndClient() + "}]", transferer.toJson(events));
}
use of nl.tudelft.watchdog.core.logic.event.eventtypes.debugging.BreakpointAddEvent in project watchdog by TestRoots.
the class BreakpointListener method breakpointAdded.
@Override
public void breakpointAdded(@NotNull XBreakpoint xBreakpoint) {
Date timestamp = new Date();
Breakpoint breakpoint = BreakpointCreator.createBreakpoint(xBreakpoint);
breakpoints.put(breakpoint.getHash(), breakpoint);
BreakpointAddEvent event = new BreakpointAddEvent(breakpoint.getHash(), breakpoint.getBreakpointType(), timestamp);
trackingEventManager.addEvent(event);
}
use of nl.tudelft.watchdog.core.logic.event.eventtypes.debugging.BreakpointAddEvent in project watchdog by TestRoots.
the class EventJsonConverterTest method testJsonUndefinedBreakpointAddEventRepresentation.
@Test
public void testJsonUndefinedBreakpointAddEventRepresentation() {
BreakpointAddEvent event = new BreakpointAddEvent(1, BreakpointType.UNDEFINED, new Date());
ArrayList<WatchDogItem> events = createSampleEvents(event);
assertEquals("[{\"bh\":1,\"bt\":\"un\",\"et\":\"ba\",\"ts\":1,\"ss\":\"\"," + pasteWDVAndClient() + "}]", transferer.toJson(events));
}
Aggregations