Search in sources :

Example 1 with EbXMLExtrinsicObject30

use of org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLExtrinsicObject30 in project ipf by oehf.

the class Ebrs30MarshalingTest method setUp.

@BeforeEach
public void setUp() throws JAXBException {
    factory = new EbXMLFactory30();
    objectLibrary = factory.createObjectLibrary();
    context = JAXBContext.newInstance("org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.rs");
    request = new SubmitObjectsRequest();
    var objListElement = new RegistryObjectListType();
    request.setRegistryObjectList(objListElement);
    var objList = objListElement.getIdentifiable();
    docEntry = factory.createExtrinsic("Document01", objectLibrary);
    docEntry.setObjectType(DocumentEntryType.STABLE.getUuid());
    objList.add(new ObjectFactory().createExtrinsicObject(((EbXMLExtrinsicObject30) docEntry).getInternal()));
}
Also used : EbXMLFactory30(org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30) RegistryObjectListType(org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.rim.RegistryObjectListType) ObjectFactory(org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.rim.ObjectFactory) SubmitObjectsRequest(org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.lcm.SubmitObjectsRequest) EbXMLExtrinsicObject30(org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLExtrinsicObject30) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 EbXMLExtrinsicObject30 (org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLExtrinsicObject30)1 EbXMLFactory30 (org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30)1 SubmitObjectsRequest (org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.lcm.SubmitObjectsRequest)1 ObjectFactory (org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.rim.ObjectFactory)1 RegistryObjectListType (org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.rim.RegistryObjectListType)1