Skip to content

Commit

Permalink
use isPositive
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Apr 27, 2021
1 parent 06ebf35 commit c75e94a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void testJpaMapping() {
assertThat(saved.getName()).isEqualTo("test");
assertThat(saved.getSalary()).isEqualTo(1000);
assertThat(saved.getId()).isNotNull();
assertThat(saved.getId()).isGreaterThan(0);
assertThat(saved.getId()).isPositive();
// just to see the generated identifier
LoggerFactory
.getLogger(EmployeeJpaTest.class)
Expand Down

0 comments on commit c75e94a

Please sign in to comment.