This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new e9113b83120 CAMEL-22159: Fix test on windows e9113b83120 is described below commit e9113b831202f075efb5aa1af8bcd1d0c188ea75 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Thu Jun 12 14:18:21 2025 +0200 CAMEL-22159: Fix test on windows --- .../test/java/org/apache/camel/spring/CamelSpringXSDValidateTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/camel-spring-parent/camel-spring-xml/src/test/java/org/apache/camel/spring/CamelSpringXSDValidateTest.java b/components/camel-spring-parent/camel-spring-xml/src/test/java/org/apache/camel/spring/CamelSpringXSDValidateTest.java index f3697ea4522..a8f4a8d7927 100644 --- a/components/camel-spring-parent/camel-spring-xml/src/test/java/org/apache/camel/spring/CamelSpringXSDValidateTest.java +++ b/components/camel-spring-parent/camel-spring-xml/src/test/java/org/apache/camel/spring/CamelSpringXSDValidateTest.java @@ -22,6 +22,7 @@ import org.apache.camel.util.xml.BytesSource; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.springframework.core.io.ClassPathResource; +import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.Resource; import org.springframework.xml.validation.XmlValidator; import org.springframework.xml.validation.XmlValidatorFactory; @@ -30,7 +31,7 @@ public class CamelSpringXSDValidateTest { @Test public void testValidateXSD() throws Exception { - Resource r = new ClassPathResource("camel-spring.xsd"); + Resource r = new FileSystemResource("target/classes/camel-spring.xsd"); Resource r2 = new ClassPathResource("org/springframework/beans/factory/xml/spring-beans.xsd"); XmlValidator val = XmlValidatorFactory.createValidator(new Resource[] { r, r2 }, XmlValidatorFactory.SCHEMA_W3C_XML);