mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-09 22:34:42 +00:00
check mode in tx test cases
This commit is contained in:
parent
9dc08c213c
commit
c9c04aec3b
@ -180,10 +180,12 @@ public class TxTester {
|
||||
List<Resource> setup = loadSetupResources(suite);
|
||||
boolean ok = true;
|
||||
for (JsonObject test : suite.getJsonObjects("tests")) {
|
||||
if (test.asBoolean("disabled")) {
|
||||
ok = true;
|
||||
} else {
|
||||
ok = runTest(test, tx, setup, modes, filter, outputS.forceArray("tests")) && ok;
|
||||
if ((!test.has("mode") || modes.contains(test.asString("mode")))) {
|
||||
if (test.asBoolean("disabled")) {
|
||||
ok = true;
|
||||
} else {
|
||||
ok = runTest(test, tx, setup, modes, filter, outputS.forceArray("tests")) && ok;
|
||||
}
|
||||
}
|
||||
}
|
||||
return ok;
|
||||
|
Loading…
x
Reference in New Issue
Block a user