fixing fhir-test-cases dependency (#6186)
* fixing fhir-test-cases dependency * accidental added characters to the file * bumping base pom version * Disabling test case due to errors in xml files extracted from org.hl7.fhir.testcases.fhir-test-cases.1.5.15 --------- Co-authored-by: peartree <etienne.poirier@smilecdr.com>
This commit is contained in:
parent
fd5cff3d23
commit
801b8b494b
|
@ -6,6 +6,7 @@ import ca.uhn.fhir.util.ClasspathUtil;
|
||||||
import ca.uhn.fhir.util.XmlUtil;
|
import ca.uhn.fhir.util.XmlUtil;
|
||||||
import jakarta.annotation.Nonnull;
|
import jakarta.annotation.Nonnull;
|
||||||
import org.hl7.fhir.instance.model.api.IBaseResource;
|
import org.hl7.fhir.instance.model.api.IBaseResource;
|
||||||
|
import org.junit.jupiter.api.Disabled;
|
||||||
import org.junit.jupiter.params.ParameterizedTest;
|
import org.junit.jupiter.params.ParameterizedTest;
|
||||||
import org.junit.jupiter.params.provider.MethodSource;
|
import org.junit.jupiter.params.provider.MethodSource;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
@ -24,6 +25,7 @@ import java.util.List;
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
import static org.junit.jupiter.api.Assertions.fail;
|
import static org.junit.jupiter.api.Assertions.fail;
|
||||||
|
|
||||||
|
@Disabled
|
||||||
public class FhirPatchCoreTest extends BaseTest {
|
public class FhirPatchCoreTest extends BaseTest {
|
||||||
|
|
||||||
private static final Logger ourLog = LoggerFactory.getLogger(FhirPatchCoreTest.class);
|
private static final Logger ourLog = LoggerFactory.getLogger(FhirPatchCoreTest.class);
|
||||||
|
@ -50,9 +52,12 @@ public class FhirPatchCoreTest extends BaseTest {
|
||||||
|
|
||||||
public static List<Object[]> parameters() throws TransformerException, SAXException, IOException {
|
public static List<Object[]> parameters() throws TransformerException, SAXException, IOException {
|
||||||
String testSpecR4 = "/org/hl7/fhir/testcases/r4/patch/fhir-path-tests.xml";
|
String testSpecR4 = "/org/hl7/fhir/testcases/r4/patch/fhir-path-tests.xml";
|
||||||
|
// the above file is missing an <output></output> section on line 1413 due to a processing error during file generation
|
||||||
|
// as per the error statement found in the file.
|
||||||
Collection<Object[]> retValR4 = loadTestSpec(FhirContext.forR4Cached(), testSpecR4);
|
Collection<Object[]> retValR4 = loadTestSpec(FhirContext.forR4Cached(), testSpecR4);
|
||||||
|
|
||||||
String testSpecR5 = "/org/hl7/fhir/testcases/r5/patch/fhir-path-tests.xml";
|
String testSpecR5 = "/org/hl7/fhir/testcases/r5/patch/fhir-path-tests.xml";
|
||||||
|
// The above file his missing xml closing tag '/>' on line 241 and 245
|
||||||
Collection<Object[]> retValR5 = loadTestSpec(FhirContext.forR5Cached(), testSpecR5);
|
Collection<Object[]> retValR5 = loadTestSpec(FhirContext.forR5Cached(), testSpecR5);
|
||||||
|
|
||||||
ArrayList<Object[]> retVal = new ArrayList<>();
|
ArrayList<Object[]> retVal = new ArrayList<>();
|
||||||
|
|
|
@ -312,7 +312,6 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.hl7.fhir.testcases</groupId>
|
<groupId>org.hl7.fhir.testcases</groupId>
|
||||||
<artifactId>fhir-test-cases</artifactId>
|
<artifactId>fhir-test-cases</artifactId>
|
||||||
<version>1.5.5-SNAPSHOT</version>
|
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -1306,7 +1306,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.hl7.fhir.testcases</groupId>
|
<groupId>org.hl7.fhir.testcases</groupId>
|
||||||
<artifactId>fhir-test-cases</artifactId>
|
<artifactId>fhir-test-cases</artifactId>
|
||||||
<version>1.1.14</version>
|
<version>1.5.15</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jdom</groupId>
|
<groupId>org.jdom</groupId>
|
||||||
|
|
Loading…
Reference in New Issue