* Process a resultset and check for any results older than the
* given date.
*/
private void assertNoResultsOlderThan(LivelinkDocumentList docList,
Date date) throws RepositoryException {
Document doc = null;
while ((doc = docList.nextDocument()) != null) {
String docId = doc.findProperty("ID").nextValue().toString();
String dateStr =
doc.findProperty("ModifyDate").nextValue().toString();
// Check that the modify date is new enough
try {
Date docDate = parseDate(dateStr);
assertFalse("Document is older than " +
defaultDateFormat.format(date) +
". (Id="+ docId + "; Name=\"" +
doc.findProperty("Name").nextValue().toString() +
"\"; Mod Date=" + defaultDateFormat.format(docDate) + ")",
docDate.before(date));
boolean verbose = false;
if ( verbose ) {
System.out.println("Examining:(Id="+ docId +
"; Name=\"" +
doc.findProperty("Name").nextValue().toString() +
"\"; Mod Date=" + defaultDateFormat.format(docDate) +
")");
}
}
catch (ParseException e) {