Changed use of message ID string in test to use constant instead

This commit is contained in:
Max Bureck 2024-05-08 14:50:50 +02:00
parent 962aee14a3
commit be0d718ac7
1 changed files with 2 additions and 1 deletions

View File

@ -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<String> 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()) {