use of org.openehealth.ipf.commons.ihe.xds.core.requests.query.GetSubmissionSetsQuery in project ipf by oehf.
the class GetSubmissionSetsQueryTransformerTest method setUp.
@BeforeEach
public void setUp() {
transformer = new GetSubmissionSetsQueryTransformer();
query = new GetSubmissionSetsQuery();
query.setUuids(Arrays.asList("uuid1", "uuid2"));
query.setHomeCommunityId("home");
ebXML = new EbXMLFactory30().createAdhocQueryRequest();
}
use of org.openehealth.ipf.commons.ihe.xds.core.requests.query.GetSubmissionSetsQuery in project ipf by oehf.
the class GetSubmissionSetsQueryTransformerTest method testToEbXMLEmpty.
@Test
public void testToEbXMLEmpty() {
transformer.toEbXML(new GetSubmissionSetsQuery(), ebXML);
assertEquals(0, ebXML.getSlots().size());
}
use of org.openehealth.ipf.commons.ihe.xds.core.requests.query.GetSubmissionSetsQuery in project ipf by oehf.
the class GetSubmissionSetsQueryTransformerTest method testFromEbXMLEmpty.
@Test
public void testFromEbXMLEmpty() {
var result = new GetSubmissionSetsQuery();
transformer.fromEbXML(result, ebXML);
assertEquals(new GetSubmissionSetsQuery(), result);
}
use of org.openehealth.ipf.commons.ihe.xds.core.requests.query.GetSubmissionSetsQuery in project ipf by oehf.
the class GetSubmissionSetsQueryTransformerTest method testFromEbXMLNull.
@Test
public void testFromEbXMLNull() {
var result = new GetSubmissionSetsQuery();
transformer.fromEbXML(result, null);
assertEquals(new GetSubmissionSetsQuery(), result);
}
Aggregations