Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
70825 committed Apr 2, 2024
1 parent 8686231 commit 74c72a2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,12 @@ class sortingReviews_성공_테스트 {

final var expected = List.of(review2.getId(), review1.getId());

assertThat(review3.getCreatedAt()).isEqualTo(LocalDateTime.now());

// when
final var actual = reviewService.sortingReviews(productId, memberId, request).getReviews();
assertThat(actual.get(0).getId()).isEqualTo(3L);
assertThat(actual.get(0).getCreatedAt()).isEqualTo(LocalDateTime.now());

// then
assertThat(actual).extracting(SortingReviewDto::getId)
Expand Down

0 comments on commit 74c72a2

Please sign in to comment.