Search in sources :

Example 1 with RetrieveDocumentSetRequestType

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);
    }
}
Also used : RetrieveDocumentSetResponseType(ihe.iti.xds_b._2007.RetrieveDocumentSetResponseType) XdConfig(org.nhind.xdr.config.XdConfig) AuditMessageGenerator(com.gsihealth.auditclient.AuditMessageGenerator) RetrieveDocumentSetRequestType(ihe.iti.xds_b._2007.RetrieveDocumentSetRequestType)

Aggregations

AuditMessageGenerator (com.gsihealth.auditclient.AuditMessageGenerator)1 RetrieveDocumentSetRequestType (ihe.iti.xds_b._2007.RetrieveDocumentSetRequestType)1 RetrieveDocumentSetResponseType (ihe.iti.xds_b._2007.RetrieveDocumentSetResponseType)1 XdConfig (org.nhind.xdr.config.XdConfig)1