You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gi...@apache.org on 2026/04/13 02:30:10 UTC
(camel-quarkus) 11/11: Different fix related to upgrade of json-schema-validator
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 927aec0c927e5fdc242605179096e7814bcec142
Author: Jiri Ondrusek <on...@gmail.com>
AuthorDate: Fri Apr 10 08:48:46 2026 +0200
Different fix related to upgrade of json-schema-validator
---
.../quarkus/component/json/validator/it/JsonValidatorTest.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/integration-tests/json-validator/src/test/java/org/apache/camel/quarkus/component/json/validator/it/JsonValidatorTest.java b/integration-tests/json-validator/src/test/java/org/apache/camel/quarkus/component/json/validator/it/JsonValidatorTest.java
index 8fb76ecd6c..8f98374ac4 100644
--- a/integration-tests/json-validator/src/test/java/org/apache/camel/quarkus/component/json/validator/it/JsonValidatorTest.java
+++ b/integration-tests/json-validator/src/test/java/org/apache/camel/quarkus/component/json/validator/it/JsonValidatorTest.java
@@ -20,6 +20,7 @@ import io.quarkus.test.junit.QuarkusTest;
import org.junit.jupiter.api.Test;
import static io.restassured.RestAssured.given;
+import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.is;
@@ -44,10 +45,10 @@ class JsonValidatorTest {
.get("/json-validator/validate")
.then()
.statusCode(200)
- .body(
- "[0]", is("required property 'price' not found"),
- "[1]", is("string found, integer expected"),
- "[2]", containsString("property 'unknown' is not defined in the schema"));
+ .body("", containsInAnyOrder(
+ is("required property 'price' not found"),
+ is("string found, integer expected"),
+ containsString("property 'unknown' is not defined in the schema")));
}
@Test