From e1a1d61abd330feec17d6ae3650be5bba9b4ac9d Mon Sep 17 00:00:00 2001 From: Timon Borter Date: Fri, 19 Jan 2024 13:35:04 +0100 Subject: [PATCH] fix: allow configuration of xml validator via constructor --- .../xml/DomXmlMessageValidator.java | 13 +++++++-- .../xml/schema/XmlSchemaValidation.java | 16 +++++++++++ .../xml/DomXmlMessageValidatorTest.java | 28 ++++++++++++++++++- 3 files changed, 53 insertions(+), 4 deletions(-) diff --git a/validation/citrus-validation-xml/src/main/java/org/citrusframework/validation/xml/DomXmlMessageValidator.java b/validation/citrus-validation-xml/src/main/java/org/citrusframework/validation/xml/DomXmlMessageValidator.java index d0b5d5fbed..345332fd43 100644 --- a/validation/citrus-validation-xml/src/main/java/org/citrusframework/validation/xml/DomXmlMessageValidator.java +++ b/validation/citrus-validation-xml/src/main/java/org/citrusframework/validation/xml/DomXmlMessageValidator.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2010 the original author or authors. + * Copyright 2006-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import java.util.Map.Entry; import javax.xml.XMLConstants; import javax.xml.namespace.NamespaceContext; - import org.citrusframework.CitrusSettings; import org.citrusframework.XmlValidationHelper; import org.citrusframework.context.TestContext; @@ -64,7 +63,15 @@ public class DomXmlMessageValidator extends AbstractMessageValidator"