Date nextDate = followingChanges.next();
assertEquals(dateFormat.parse("20060920123618661"), nextDate);
}
public void notyettestGOTFilter() throws Exception {
DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmssSSS");
//ToyClock clock = new ToyClock();
Store store = getStoreImpl(new ToyClock());
String baseURLString = "http://localhost/";
CannedDataReader.readCannedData(store, new File("testdata"),
baseURLString);
GraphOverTime got = store.getGraphOverTime(Collections
.singleton((Source) new SourceImpl(baseURLString + "danbri")));
//filter by a resource present only in the older version
got = got.filter(Collections.singleton((GroundedNode)new NamedNodeImpl("mailto:danbri@porklips.org")));
// one milli after last modification
Iterator<Date> followingChanges = got.followingChanges(dateFormat
.parse("19980920123600000"));
assertFalse(followingChanges.hasNext());
Iterator<Date> previousChanges = got.previousChanges(dateFormat
.parse("19980920123600000"));
assertTrue(previousChanges.hasNext());
}