assertEquals("Min latency not set", MAX, query.getMaximumLatency());
}
@Test
public void latencyQueryToString() {
LatencyQuery query = new LatencyQuery();
ClockTime minLatency = ClockTime.fromMillis(13000);
ClockTime maxLatency = ClockTime.fromMillis(200000);
query.setLatency(true, minLatency, maxLatency);
String s = query.toString();
assertTrue("toString() did not return isLive", s.contains("live=true"));
assertTrue("toString() did not return minLatency", s.contains("min=" + minLatency));
assertTrue("toString() did not return minLatency", s.contains("max=" + maxLatency));
}