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 authored and yrodiere committed Nov 28, 2023
1 parent f65d708 commit 4f49734
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 4f49734

Please sign in to comment.