Skip to content

Commit

Permalink
Add test for Panache ORM query exception
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideD committed Nov 27, 2023
1 parent cd808c4 commit 742d316
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 742d316

Please sign in to comment.