use of nl.tudelft.watchdog.core.logic.event.eventtypes.debugging.DebugEventBase in project watchdog by TestRoots.
the class TrackingEventManagerTest method testAddStepIntoEvent.
@Test
public void testAddStepIntoEvent() {
DebugEventBase eventReal = new DebugEventBase(TrackingEventType.STEP_INTO, new Date());
DebugEventBase event = Mockito.spy(eventReal);
trackingEventManager.addEvent(event);
Mockito.verify(event).setSessionSeed(sessionSeed);
Mockito.verify(eventsToTransferPersister).save(Mockito.isA(DebugEventBase.class));
Mockito.verify(eventsStatisticsPersister).save(Mockito.isA(DebugEventBase.class));
}
use of nl.tudelft.watchdog.core.logic.event.eventtypes.debugging.DebugEventBase in project watchdog by TestRoots.
the class EventJsonConverterTest method testJsonStepOutEvent.
@Test
public void testJsonStepOutEvent() {
DebugEventBase event = new DebugEventBase(TrackingEventType.STEP_OUT, new Date());
ArrayList<WatchDogItem> events = createSampleEvents(event);
assertEquals("[{\"et\":\"st\",\"ts\":1,\"ss\":\"\"," + pasteWDVAndClient() + "}]", transferer.toJson(events));
}
use of nl.tudelft.watchdog.core.logic.event.eventtypes.debugging.DebugEventBase in project watchdog by TestRoots.
the class EventJsonConverterTest method testJsonStepIntoEvent.
@Test
public void testJsonStepIntoEvent() {
DebugEventBase event = new DebugEventBase(TrackingEventType.STEP_INTO, new Date());
ArrayList<WatchDogItem> events = createSampleEvents(event);
assertEquals("[{\"et\":\"si\",\"ts\":1,\"ss\":\"\"," + pasteWDVAndClient() + "}]", transferer.toJson(events));
}
use of nl.tudelft.watchdog.core.logic.event.eventtypes.debugging.DebugEventBase in project watchdog by TestRoots.
the class EventJsonConverterTest method testJsonStepOverEvent.
@Test
public void testJsonStepOverEvent() {
DebugEventBase event = new DebugEventBase(TrackingEventType.STEP_OVER, new Date());
ArrayList<WatchDogItem> events = createSampleEvents(event);
assertEquals("[{\"et\":\"so\",\"ts\":1,\"ss\":\"\"," + pasteWDVAndClient() + "}]", transferer.toJson(events));
}
use of nl.tudelft.watchdog.core.logic.event.eventtypes.debugging.DebugEventBase in project watchdog by TestRoots.
the class EventJsonConverterTest method testJsonResumeClientEvent.
@Test
public void testJsonResumeClientEvent() {
DebugEventBase event = new DebugEventBase(TrackingEventType.RESUME_CLIENT, new Date());
ArrayList<WatchDogItem> events = createSampleEvents(event);
assertEquals("[{\"et\":\"rc\",\"ts\":1,\"ss\":\"\"," + pasteWDVAndClient() + "}]", transferer.toJson(events));
}
Aggregations