v2.1.0
- 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);
});
}