}
private NotesDocumentMock createNotesDocumentWithAllInfo()
throws RepositoryException{
NotesDocumentMock docMock = new NotesDocumentMock();
docMock.addItem(new NotesItemMock("name", "Form", "type", NotesItem.TEXT,
"values",NCCONST.FORMCRAWLREQUEST));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_ACTION, "type",
NotesItem.TEXT, "values","add"));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_DOCID, "type",
NotesItem.TEXT, "values",
"http://" + TESTCONST.SERVER_DOMINO_WEB + TESTCONST.DOMAIN +
"/" + TESTCONST.DBSRC_REPLICAID + "/0/XXXXXXXXXXXXXXXXXXXXXXXXXXXX0000"));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_ISPUBLIC, "type",
NotesItem.TEXT, "values","true"));
NotesDateTimeMock dtMock = new NotesDateTimeMock(null);
dtMock.setNow();
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_LASTMODIFIED,
"type", NotesItem.DATETIMES, "values", dtMock));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_LOCK, "type",
NotesItem.TEXT, "values","true"));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_MIMETYPE, "type",
NotesItem.TEXT, "values","text/plain"));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_TITLE, "type",
NotesItem.TEXT, "values","This is a test"));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_GMETAALLATTACHMENTS,
"type", NotesItem.TEXT, "values","allattachments"));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_GMETAATTACHMENTS,
"type", NotesItem.TEXT, "values","attachments"));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_GMETACATEGORIES,
"type", NotesItem.TEXT, "values","Discussion"));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_GMETACREATEDATE, "type",
NotesItem.DATETIMES, "values",dtMock));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_GMETADATABASE, "type",
NotesItem.TEXT, "values","Discussion Database"));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_GMETADESCRIPTION, "type",
NotesItem.TEXT, "values","Descrition: this is a test document"));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_GMETAFORM, "type",
NotesItem.TEXT, "values","MainTopic"));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_GMETALASTUPDATE, "type",
NotesItem.DATETIMES, "values",dtMock));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_GMETANOTESLINK, "type",
NotesItem.TEXT, "values",
"notes://" + TESTCONST.SERVER_DOMINO + "/__" + TESTCONST.DBSRC_REPLICAID +
".nsf/0/XXXXXXXXXXXXXXXXXXXXXXXXXXXX0000?OpenDocument"));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_GMETAREPLICASERVERS, "type",
NotesItem.TEXT, "values","server1/mtv/us,server2/mtv/us"));
docMock.addItem(new NotesItemMock("name", NCCONST.ITM_GMETAWRITERNAME, "type",
NotesItem.TEXT, "values","CN=Jean Writer/OU=MTV/O=GOV"));
docMock.addItem(new NotesItemMock("name", NCCONST.NCITM_AUTHTYPE, "type",
NotesItem.TEXT, "values","connector"));
Vector<String> vecAuthorReaders = new Vector<String>();
vecAuthorReaders.add("cn=John Doe/ou=mtv/o=us");
vecAuthorReaders.add("[dbadmin]");
vecAuthorReaders.add("LocalDomainAdmins");
NotesItemMock authorReaders = new NotesItemMock("name",
NCCONST.NCITM_DOCAUTHORREADERS, "type", NotesItem.TEXT,
"values",vecAuthorReaders);
docMock.addItem(authorReaders);
Vector<String> readers = new Vector<String>();
readers.add("cn=John Doe/ou=mtv/o=us");
readers.add("[dbadmin]");
readers.add("LocalDomainAdmins");
readers.add("cn=Jane Doe/ou=mtv/o=us");
NotesItemMock docReaders = new NotesItemMock("name", NCCONST.NCITM_DOCREADERS,
"type", NotesItem.TEXT, "values",readers);
docMock.addItem(docReaders);
docMock.addItem(new NotesItemMock("name", NCCONST.NCITM_DOMAIN, "type",
NotesItem.TEXT, "values","gsa-connectors.com"));
docMock.addItem(new NotesItemMock("name", NCCONST.NCITM_REPLICAID, "type",
NotesItem.TEXT, "values",TESTCONST.DBSRC_REPLICAID));
docMock.addItem(new NotesItemMock("name", NCCONST.NCITM_SERVER, "type",
NotesItem.TEXT, "values","mickey1/mtv/us"));
docMock.addItem(new NotesItemMock("name", NCCONST.NCITM_STATE, "type",
NotesItem.TEXT, "values","Indexed"));
docMock.addItem(new NotesItemMock("name", NCCONST.NCITM_TEMPLATE, "type",
NotesItem.TEXT, "values","Discussion"));
docMock.addItem(new NotesItemMock("name", NCCONST.NCITM_UNID, "type",
NotesItem.TEXT, "values","XXXXXXXXXXXXXXXXXXXXXXXXXXXX0000"));
docMock.addItem(new NotesItemMock("name", "x.meta_custom1", "type",
NotesItem.TEXT, "values","testing custom meta field"));
docMock.addItem(new NotesItemMock("name", "x.meta_customer", "type",
NotesItem.TEXT, "values","Sesame Street"));
return docMock;
}