use of ihe.iti.xds_b._2007.RetrieveDocumentSetRequestType in project nhin-d by DirectProject.
the class XDRTest method testDocumentRepositoryRetrieveDocumentSet.
/**
* Test the documentRepositoryRetrieveDocumentSet method.
*/
public void testDocumentRepositoryRetrieveDocumentSet() throws Exception {
try {
DocumentRepositoryAbstract instance = new XDR();
// Set test objects
instance.setAuditMessageGenerator(new AuditMessageGenerator(getLogfile()));
// instance.setMailClient(new SmtpMailClient("gmail-smtp.l.google.com", "lewistower1@gmail.com", "hadron106"));
XdConfig config = new XdConfig();
config.setMailHost("gmail-smtp.l.google.com");
config.setMailUser("lewistower1@gmail.com");
config.setMailPass("hadron106");
instance.setConfig(config);
@SuppressWarnings("unused") RetrieveDocumentSetResponseType response = null;
RetrieveDocumentSetRequestType body = new RetrieveDocumentSetRequestType();
response = instance.documentRepositoryRetrieveDocumentSet(body);
fail("Exception not thrown");
} catch (UnsupportedOperationException e) {
assertTrue(true);
}
}
Aggregations