[go: nahoru, domu]

Skip to content

Commit

Permalink
#414 Re-Enable Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thopap committed Apr 29, 2024
1 parent 26aed0b commit dd8ebc1
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 23 deletions.
7 changes: 7 additions & 0 deletions commons/ihe/hl7v3model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
</dependency>

<!-- Test dependencies -->
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
package org.openehealth.ipf.commons.ihe.hl7v3.core.responses;

import net.ihe.gazelle.hl7v3.datatypes.II;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.openehealth.ipf.commons.ihe.hl7v3.core.metadata.Device;
import org.openehealth.ipf.commons.ihe.hl7v3.core.requests.PixV3QueryRequest;

import static org.junit.jupiter.api.Assertions.assertEquals;

@Disabled("disabled due to javax dependency in gazelle lib")
public class PixV3QueryResponseTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import net.ihe.gazelle.hl7v3.datatypes.*;
import net.ihe.gazelle.hl7v3.prpain201309UV02.PRPAIN201309UV02Type;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.openehealth.ipf.commons.ihe.core.HL7DTM;
import org.openehealth.ipf.commons.ihe.hl7v3.core.metadata.Device;
Expand All @@ -33,7 +32,6 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

@Disabled("disabled due to javax dependency in gazelle lib")
public class PixV3QueryRequestTransformerTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,30 @@
*/
package org.openehealth.ipf.commons.ihe.hl7v3.core.transform.responses;

import org.openehealth.ipf.commons.ihe.hl7v3.core.transform.requests.PixV3QueryRequestTransformerTest;
import static org.junit.jupiter.api.Assertions.assertEquals;

import java.io.ByteArrayInputStream;
import java.io.StringWriter;
import java.nio.charset.StandardCharsets;
import java.util.List;

import jakarta.xml.bind.JAXBContext;
import jakarta.xml.bind.Marshaller;
import net.ihe.gazelle.hl7v3.coctmt150003UV03.COCTMT150003UV03Organization;
import net.ihe.gazelle.hl7v3.datatypes.*;
import net.ihe.gazelle.hl7v3.datatypes.CE;
import net.ihe.gazelle.hl7v3.datatypes.ED;
import net.ihe.gazelle.hl7v3.datatypes.II;
import net.ihe.gazelle.hl7v3.datatypes.ON;
import net.ihe.gazelle.hl7v3.datatypes.PN;
import net.ihe.gazelle.hl7v3.datatypes.ST;
import net.ihe.gazelle.hl7v3.mccimt000300UV01.MCCIMT000300UV01AcknowledgementDetail;
import net.ihe.gazelle.hl7v3.prpain201310UV02.PRPAIN201310UV02Type;
import net.ihe.gazelle.hl7v3.prpamt201304UV02.PRPAMT201304UV02OtherIDs;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.openehealth.ipf.commons.ihe.core.HL7DTM;
import org.openehealth.ipf.commons.ihe.hl7v3.core.responses.PixV3QueryResponse;
import org.openehealth.ipf.commons.ihe.hl7v3.core.transform.requests.PixV3QueryRequestTransformerTest;

import jakarta.xml.bind.JAXBContext;
import jakarta.xml.bind.Marshaller;

import java.io.ByteArrayInputStream;
import java.io.StringWriter;
import java.nio.charset.StandardCharsets;
import java.util.List;

import static org.junit.jupiter.api.Assertions.assertEquals;

@Disabled("disabled due to javax dependency in gazelle lib")
public class PixV3QueryResponseTransformerTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,18 @@
package org.openehealth.ipf.commons.ihe.xacml20.chppq;

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.openehealth.ipf.commons.ihe.xacml20.Xacml20Utils;

import jakarta.xml.bind.JAXBElement;
import jakarta.xml.bind.JAXBIntrospector;

import static org.openehealth.ipf.commons.ihe.xacml20.Xacml20MessageValidator.*;

/**
* @since 3.5.1
* @author Dmytro Rud
*/
@Disabled("disabled due to javax dependency in herasaf lib")
public class MessageValidationTest {

@BeforeAll
Expand All @@ -40,10 +39,10 @@ private static <T> T loadFile(String fn) throws Exception {
var stream = MessageValidationTest.class.getClassLoader().getResourceAsStream("messages/" + fn);
var unmarshaller = Xacml20Utils.JAXB_CONTEXT.createUnmarshaller();
var object = unmarshaller.unmarshal(stream);
if (object instanceof JAXBElement) {
object = ((JAXBElement) object).getValue();
if (object instanceof JAXBElement objectValue) {
object = objectValue;
}
return (T) object;
return (T) JAXBIntrospector.getValue(object);
}

@Test
Expand Down

0 comments on commit dd8ebc1

Please sign in to comment.