Search in sources :

Example 1 with GetSubmissionSetsQuery

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();
}
Also used : GetSubmissionSetsQuery(org.openehealth.ipf.commons.ihe.xds.core.requests.query.GetSubmissionSetsQuery) EbXMLFactory30(org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30) GetSubmissionSetsQueryTransformer(org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.GetSubmissionSetsQueryTransformer) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with GetSubmissionSetsQuery

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());
}
Also used : GetSubmissionSetsQuery(org.openehealth.ipf.commons.ihe.xds.core.requests.query.GetSubmissionSetsQuery) Test(org.junit.jupiter.api.Test)

Example 3 with GetSubmissionSetsQuery

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);
}
Also used : GetSubmissionSetsQuery(org.openehealth.ipf.commons.ihe.xds.core.requests.query.GetSubmissionSetsQuery) Test(org.junit.jupiter.api.Test)

Example 4 with GetSubmissionSetsQuery

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);
}
Also used : GetSubmissionSetsQuery(org.openehealth.ipf.commons.ihe.xds.core.requests.query.GetSubmissionSetsQuery) Test(org.junit.jupiter.api.Test)

Aggregations

GetSubmissionSetsQuery (org.openehealth.ipf.commons.ihe.xds.core.requests.query.GetSubmissionSetsQuery)4 Test (org.junit.jupiter.api.Test)3 BeforeEach (org.junit.jupiter.api.BeforeEach)1 EbXMLFactory30 (org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLFactory30)1 GetSubmissionSetsQueryTransformer (org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.GetSubmissionSetsQueryTransformer)1