Search in sources :

Example 11 with BreakpointAddEvent

use of nl.tudelft.watchdog.core.logic.event.eventtypes.debugging.BreakpointAddEvent in project watchdog by TestRoots.

the class EventJsonConverterTest method testJsonClassBreakpointAddEventRepresentation.

@Test
public void testJsonClassBreakpointAddEventRepresentation() {
    BreakpointAddEvent event = new BreakpointAddEvent(1, BreakpointType.CLASS, new Date());
    ArrayList<WatchDogItem> events = createSampleEvents(event);
    assertEquals("[{\"bh\":1,\"bt\":\"cp\",\"et\":\"ba\",\"ts\":1,\"ss\":\"\"," + pasteWDVAndClient() + "}]", transferer.toJson(events));
}
Also used : BreakpointAddEvent(nl.tudelft.watchdog.core.logic.event.eventtypes.debugging.BreakpointAddEvent) Date(java.util.Date) WatchDogItem(nl.tudelft.watchdog.core.logic.storage.WatchDogItem) Test(org.junit.Test)

Aggregations

Date (java.util.Date)11 BreakpointAddEvent (nl.tudelft.watchdog.core.logic.event.eventtypes.debugging.BreakpointAddEvent)11 Test (org.junit.Test)7 WatchDogItem (nl.tudelft.watchdog.core.logic.storage.WatchDogItem)6 Breakpoint (nl.tudelft.watchdog.core.logic.breakpoint.Breakpoint)2 EventBase (nl.tudelft.watchdog.core.logic.event.eventtypes.EventBase)2 XBreakpoint (com.intellij.xdebugger.breakpoints.XBreakpoint)1 Random (java.util.Random)1 IBreakpoint (org.eclipse.debug.core.model.IBreakpoint)1