You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2019/11/29 05:06:07 UTC
[camel-quarkus] branch master updated: Fix #484 The validator test
should use a classpath URI for the XSD
This is an automated email from the ASF dual-hosted git repository.
lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push:
new b04680f Fix #484 The validator test should use a classpath URI for the XSD
b04680f is described below
commit b04680f7b74195080f88dc8bb72504c20c032756
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Thu Nov 28 12:33:35 2019 +0100
Fix #484 The validator test should use a classpath URI for the XSD
---
.../component/validator/it/ValidatorRouteBuilder.java | 2 +-
.../src/main/resources/application.properties | 18 ++++++++++++++++++
.../validator/src/main/resources/resources-config.json | 7 +++++++
3 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/integration-tests/validator/src/main/java/org/apache/camel/quarkus/component/validator/it/ValidatorRouteBuilder.java b/integration-tests/validator/src/main/java/org/apache/camel/quarkus/component/validator/it/ValidatorRouteBuilder.java
index 9e5c8b7..2644276 100644
--- a/integration-tests/validator/src/main/java/org/apache/camel/quarkus/component/validator/it/ValidatorRouteBuilder.java
+++ b/integration-tests/validator/src/main/java/org/apache/camel/quarkus/component/validator/it/ValidatorRouteBuilder.java
@@ -22,6 +22,6 @@ public class ValidatorRouteBuilder extends RouteBuilder {
@Override
public void configure() {
from("direct:start")
- .to("validator:file:src/main/resources/message.xsd");
+ .to("validator:message.xsd");
}
}
diff --git a/integration-tests/validator/src/main/resources/application.properties b/integration-tests/validator/src/main/resources/application.properties
new file mode 100644
index 0000000..e9ac8a6
--- /dev/null
+++ b/integration-tests/validator/src/main/resources/application.properties
@@ -0,0 +1,18 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements. See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+
+quarkus.native.additional-build-args =-H:ResourceConfigurationFiles=resources-config.json
\ No newline at end of file
diff --git a/integration-tests/validator/src/main/resources/resources-config.json b/integration-tests/validator/src/main/resources/resources-config.json
new file mode 100644
index 0000000..679fed9
--- /dev/null
+++ b/integration-tests/validator/src/main/resources/resources-config.json
@@ -0,0 +1,7 @@
+{
+ "resources": [
+ {
+ "pattern": ".*\\.xsd$"
+ }
+ ]
+}
\ No newline at end of file