}
/**
- * Range query, but with a t2 far off the end of the trace.
- * The result should still be valid.
+ * Range query, but with a t2 far off the end of the trace. The result
+ * should still be valid.
*/
@Test
public void testRangeQuery2() {
fail();
}
}
+
+ @Test
+ public void testFirstIntervalIsConsidered() {
+ try {
+ List<ITmfStateInterval> list = ssq.queryFullState(1331668248014135800L);
+ ITmfStateInterval interval = list.get(233);
+ assertEquals(1331668247516664825L, interval.getStartTime());
+
+ int valueInt = interval.getStateValue().unboxInt();
+ assertEquals(1, valueInt);
+ } catch (TimeRangeException e) {
+ fail();
+ } catch (StateSystemDisposedException e) {
+ fail();
+ } catch (StateValueTypeException e) {
+ fail();
+ }
+ }
}