Skip to content

Releases: Lemick/hibernate-query-asserts

v2.2.0

01 Feb 10:45
Compare
Choose a tag to compare
  • Parsing errors do not throw a RuntimeException
  • Upgrade JSQLParser to 5.1

v2.1.0

28 Aug 22:08
Compare
Choose a tag to compare
  • Add programmatic assertion API

Example:

@Test
void test() {
    QueryAssertions.assertInsertCount(2, () -> {
        BlogPost post_1 = new BlogPost("Blog post 1");
        post_1.addComment(new PostComment("Good article"));
        blogPostRepository.save(post_1);
    });
}