From 742d316a1e8b2334611d49bf384088d34bc6ca48 Mon Sep 17 00:00:00 2001 From: Davide D'Alto Date: Mon, 27 Nov 2023 18:23:49 +0100 Subject: [PATCH] Add test for Panache ORM query exception --- .../src/main/java/io/quarkus/it/panache/TestEndpoint.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/TestEndpoint.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/TestEndpoint.java index 8643dda0b99cb..bd3aeb09f2ded 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/TestEndpoint.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/TestEndpoint.java @@ -193,6 +193,9 @@ public String testModel() { Assertions.assertThrows(PanacheQueryException.class, () -> Person.update("Person.updateAllNames", Parameters.with("name", "stef2").map())); + Assertions.assertThrows(PanacheQueryException.class, + () -> Person.update("Person.updateAllNames")); + Assertions.assertEquals(1, Person.update("#Person.updateAllNames", Parameters.with("name", "stef3"))); persons = Person.find("#Person.getByName", Parameters.with("name", "stef3")).list(); Assertions.assertEquals(1, persons.size());