From 353e520226eae7a8a7a00e13b5b8e316fef04a47 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Tue, 28 Apr 2020 13:35:04 +1000 Subject: [PATCH] Release new version 4.2.20 --- .../fhir/validation/tests/ValidationTestSuite.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTestSuite.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTestSuite.java index 2a4a8ece5..fe056912e 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTestSuite.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTestSuite.java @@ -49,6 +49,8 @@ import java.util.Map.Entry; @RunWith(Parameterized.class) public class ValidationTestSuite implements IEvaluationContext, IValidatorResourceFetcher { + public final static boolean PRINT_OUTPUT_TO_CONSOLE = false; + @Parameters(name = "{index}: id {0}") public static Iterable data() throws IOException { @@ -302,16 +304,22 @@ public class ValidationTestSuite implements IEvaluationContext, IValidatorResour for (ValidationMessage vm : errors) { if (vm.getLevel() == IssueSeverity.FATAL || vm.getLevel() == IssueSeverity.ERROR) { ec++; -// System.out.println(vm.getDisplay()); + if (PRINT_OUTPUT_TO_CONSOLE ) { + System.out.println(vm.getDisplay()); + } errLocs.add(vm.getLocation()); } if (vm.getLevel() == IssueSeverity.WARNING) { wc++; -// System.out.println(vm.getDisplay()); + if (PRINT_OUTPUT_TO_CONSOLE ) { + System.out.println(vm.getDisplay()); + } } if (vm.getLevel() == IssueSeverity.INFORMATION) { hc++; -// System.out.println(vm.getDisplay()); + if (PRINT_OUTPUT_TO_CONSOLE ) { + System.out.println(vm.getDisplay()); + } } } if (!TestingUtilities.context(version).isNoTerminologyServer() || !focus.has("tx-dependent")) {