Skip to content

Commit 0ad2a25

Browse files
JiriOndrusekgithub-actions[bot]
authored andcommitted
Different fix related to upgrade of json-schema-validator
1 parent 17f58c9 commit 0ad2a25

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • integration-tests/json-validator/src/test/java/org/apache/camel/quarkus/component/json/validator/it

integration-tests/json-validator/src/test/java/org/apache/camel/quarkus/component/json/validator/it/JsonValidatorTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.junit.jupiter.api.Test;
2121

2222
import static io.restassured.RestAssured.given;
23+
import static org.hamcrest.Matchers.containsInAnyOrder;
2324
import static org.hamcrest.Matchers.containsString;
2425
import static org.hamcrest.Matchers.is;
2526

@@ -44,10 +45,10 @@ public void invalidJsonShouldNotBeValidated() {
4445
.get("/json-validator/validate")
4546
.then()
4647
.statusCode(200)
47-
.body(
48-
"[0]", is("required property 'price' not found"),
49-
"[1]", is("string found, integer expected"),
50-
"[2]", containsString("property 'unknown' is not defined in the schema"));
48+
.body("", containsInAnyOrder(
49+
is("required property 'price' not found"),
50+
is("string found, integer expected"),
51+
containsString("property 'unknown' is not defined in the schema")));
5152
}
5253

5354
@Test

0 commit comments

Comments
 (0)