use of nl.tudelft.watchdog.core.logic.interval.intervaltypes.ReadingInterval in project watchdog by TestRoots.
the class IntervalJsonConverterTest method testJsonReadingIntervalRepresentation.
/**
* Tests the format of the returned Json representation.
*/
@Test
public void testJsonReadingIntervalRepresentation() {
ReadingInterval interval = new ReadingInterval(null, new Date());
ArrayList<WatchDogItem> intervals = createSampleIntervals(interval);
assertEquals("[{\"doc\":{\"pn\":\"f6f4da8d93e88a08220e03b7810451d3ba540a34\",\"fn\":\"90a8834de76326869f3e703cd61513081ad73d3c\",\"sloc\":1,\"dt\":\"pr\"},\"it\":\"re\",\"ts\":1,\"te\":2,\"ss\":\"\"," + pasteWDVAndClient() + "}]", transferer.toJson(intervals));
}
Aggregations