Skip to content

Commit

Permalink
test: 반환값을 통해 비교하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ503 committed Oct 1, 2023
1 parent 38413be commit f0c0e93
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ class JpaBidRepositoryTest extends JpaBidRepositoryFixture {
final Bid bid = new Bid(경매1, 입찰자1, 입찰액);

// when
bidRepository.save(bid);
final Bid actual = bidRepository.save(bid);

// then
em.flush();
em.clear();

assertThat(bid.getId()).isPositive();
assertThat(actual.getId()).isPositive();
}

@Test
Expand Down

0 comments on commit f0c0e93

Please sign in to comment.