From be0d718ac720bd8122bb5f33839ea543d6e670b1 Mon Sep 17 00:00:00 2001 From: Max Bureck Date: Wed, 8 May 2024 14:50:50 +0200 Subject: [PATCH] Changed use of message ID string in test to use constant instead --- .../java/org/hl7/fhir/validation/ResourceValidationTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/ResourceValidationTests.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/ResourceValidationTests.java index 2db355613..e49726978 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/ResourceValidationTests.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/ResourceValidationTests.java @@ -14,6 +14,7 @@ import org.hl7.fhir.r5.formats.XmlParser; import org.hl7.fhir.r5.model.Resource; import org.hl7.fhir.r5.test.utils.TestingUtilities; import org.hl7.fhir.utilities.FhirPublication; +import org.hl7.fhir.utilities.i18n.I18nConstants; import org.hl7.fhir.utilities.settings.FhirSettings; import org.hl7.fhir.utilities.validation.ValidationMessage; import org.hl7.fhir.validation.instance.InstanceValidator; @@ -139,7 +140,7 @@ public class ResourceValidationTests { List errorMessages = new ArrayList<>(); for(ValidationMessage message : errors) { // we will skip the message that WG citation is needed - if("VALIDATION_HL7_WG_NEEDED".equals(message.getMessageId())) { + if(I18nConstants.VALIDATION_HL7_WG_NEEDED.equals(message.getMessageId())) { continue; } if(message.getLevel().isError()) {