Search in sources :

Example 6 with DefaultXdmXdsTransformer

use of org.nhindirect.xd.transform.impl.DefaultXdmXdsTransformer in project nhin-d by DirectProject.

the class DefaultXdmXdsTransformerTest method testGetXDMRequest_File.

/**
     * Test the getXDMRequest method.
     */
public void testGetXDMRequest_File() {
    LOGGER.info("Begin testGetXDMRequest_File");
    DefaultXdmXdsTransformer transformer = new DefaultXdmXdsTransformer();
    File input = getSampleXdmAsFile();
    ProvideAndRegisterDocumentSetRequestType output = null;
    try {
        output = transformer.transform(input);
        assertTrue("Output is null", output != null);
    } catch (Exception e) {
        e.printStackTrace();
        fail("Exception thrown");
    }
}
Also used : DefaultXdmXdsTransformer(org.nhindirect.xd.transform.impl.DefaultXdmXdsTransformer) File(java.io.File) ProvideAndRegisterDocumentSetRequestType(ihe.iti.xds_b._2007.ProvideAndRegisterDocumentSetRequestType)

Aggregations

DefaultXdmXdsTransformer (org.nhindirect.xd.transform.impl.DefaultXdmXdsTransformer)6 ProvideAndRegisterDocumentSetRequestType (ihe.iti.xds_b._2007.ProvideAndRegisterDocumentSetRequestType)2 ExternalIdentifierType (oasis.names.tc.ebxml_regrep.xsd.rim._3.ExternalIdentifierType)2 ExtrinsicObjectType (oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType)2 File (java.io.File)1 DataHandler (javax.activation.DataHandler)1 JAXBElement (javax.xml.bind.JAXBElement)1 QName (javax.xml.namespace.QName)1 SubmitObjectsRequest (oasis.names.tc.ebxml_regrep.xsd.lcm._3.SubmitObjectsRequest)1 IdentifiableType (oasis.names.tc.ebxml_regrep.xsd.rim._3.IdentifiableType)1 RegistryObjectListType (oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType)1 RegistryPackageType (oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryPackageType)1