for (Value value : values61) {
if (value.statistics.name.equals("TimeToFailture")) {
List<TimeToFailture.TTFData> ttfData = (List<TTFData>) value.value;
assertEquals(1, ttfData.size());
TTFData item = ttfData.iterator().next();
assertEquals(1, item.getCount());
}
}
f = LogsManagerTest.extractResourceAs(data, "dupres/nested10997", "log444.3");
addLog(f, "log444");
values61 = LogsManager.getDefault().getVersionStatistics(version61).getData();
assertNotNull(values61);
for (Value value : values61) {
if (value.statistics.name.equals("TimeToFailture")) {
List<TimeToFailture.TTFData> ttfData = (List<TTFData>) value.value;
assertEquals(1, ttfData.size());
TTFData item = ttfData.iterator().next();
assertEquals(2, item.getCount());
}
}
em.getTransaction().commit();