Fix problem with R4B FHIRPath tests

This commit is contained in:
Grahame Grieve 2022-10-07 09:20:34 +11:00
parent 56982e9732
commit 56e8774c8f
3 changed files with 25 additions and 19 deletions

View File

@ -175,10 +175,7 @@ public class FHIRPathTests {
}
if (node != null) {
try {
if (Utilities.noString(input)) {
fp.check(null, null, node);
} else {
if (!Utilities.noString(input)) {
res = resources.get(input);
if (res == null) {
if (input.endsWith(".json")) {
@ -188,6 +185,12 @@ public class FHIRPathTests {
}
resources.put(input, res);
}
}
try {
if (Utilities.noString(input)) {
fp.check(null, null, node);
} else {
fp.check(res, res.getResourceType().toString(), res.getResourceType().toString(), node);
}
Assertions.assertTrue(fail != TestResultType.SEMANTICS, String.format("Expected exception didn't occur checking %s", expression));

View File

@ -176,10 +176,7 @@ public class FHIRPathTests {
}
if (node != null) {
try {
if (Utilities.noString(input)) {
fp.check(null, null, node);
} else {
if (!Utilities.noString(input)) {
res = resources.get(input);
if (res == null) {
if (input.endsWith(".json")) {
@ -189,6 +186,12 @@ public class FHIRPathTests {
}
resources.put(input, res);
}
}
try {
if (Utilities.noString(input)) {
fp.check(null, null, node);
} else {
fp.check(res, res.getResourceType().toString(), res.getResourceType().toString(), node);
}
Assertions.assertTrue(fail != TestResultType.SEMANTICS, String.format("Expected exception didn't occur checking %s", expression));

View File

@ -19,7 +19,7 @@
<properties>
<hapi_fhir_version>5.4.0</hapi_fhir_version>
<validator_test_case_version>1.1.114</validator_test_case_version>
<validator_test_case_version>1.1.115</validator_test_case_version>
<junit_jupiter_version>5.7.1</junit_jupiter_version>
<junit_platform_launcher_version>1.8.2</junit_platform_launcher_version>
<maven_surefire_version>3.0.0-M5</maven_surefire_version>