fail("No value for property at index: " + property + "/" + index);
}
private NotesDocumentMock getCrawlDatabaseAcl() throws Exception {
// Mimic NotesDatabasePoller.createDatabaseAclDocument
NotesDocumentMock crawlDoc = new NotesDocumentMock();
crawlDoc.addItem(new NotesItemMock("name", NCCONST.NCITM_DBACL, "type",
NotesItem.TEXT, "values", "true"));
crawlDoc.addItem(new NotesItemMock("name", NCCONST.NCITM_DBACLINHERITTYPE,
"type", NotesItem.TEXT, "values",
NCCONST.DB_ACL_INHERIT_TYPE_ANDBOTH));
crawlDoc.addItem(new NotesItemMock("name", NCCONST.NCITM_STATE,
"type", NotesItem.TEXT, "values", NCCONST.STATEFETCHED));
crawlDoc.addItem(new NotesItemMock("name", NCCONST.ITM_ACTION,
"type", NotesItem.TEXT, "values", ActionType.ADD));
crawlDoc.addItem(new NotesItemMock("name", NCCONST.NCITM_UNID, "type",
NotesItem.TEXT, "values", "unid"));
crawlDoc.addItem(new NotesItemMock("name", NCCONST.ITM_DOCID, "type",
NotesItem.TEXT, "values", "docid"));
crawlDoc.addItem(new NotesItemMock("name", NCCONST.NCITM_DBPERMITUSERS,
"type", NotesItem.TEXT, "values", "user1", "user2"));
crawlDoc.addItem(new NotesItemMock("name", NCCONST.NCITM_DBNOACCESSUSERS,
"type", NotesItem.TEXT, "values", "user3", "user4"));
crawlDoc.addItem(new NotesItemMock("name", NCCONST.NCITM_DBPERMITGROUPS,
"type", NotesItem.TEXT, "values",
"Domino%2Fgroup1", "Domino%2Fgroup2"));
crawlDoc.addItem(new NotesItemMock("name", NCCONST.NCITM_DBNOACCESSGROUPS,
"type", NotesItem.TEXT, "values",
"Domino%2Fgroup3", "Domino%2Fgroup4"));
return crawlDoc;
}