Skip to content

Commit

Permalink
test16
Browse files Browse the repository at this point in the history
  • Loading branch information
70825 committed Apr 2, 2024
1 parent 4018f32 commit 152c92d
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ class sortingReviews_성공_테스트 {
Thread.sleep(100);
final var review3 = 리뷰_이미지test3_평점3_재구매X_생성(member, product, 130L);
복수_리뷰_저장(review1, review2, review3);
//entityManager.clear();
entityManager.clear();
final var request = 리뷰정렬요청_최신순_생성(3L);

final var expected = List.of(review2.getId(), review1.getId());
Expand All @@ -408,13 +408,9 @@ class sortingReviews_성공_테스트 {

// when
final var actual = reviewService.sortingReviews(productId, memberId, request).getReviews();
System.out.println("asdfasdf");
if (actual.size() == 3) {
assertThat(review3_1.getCreatedAt()).isEqualTo(actual.get(0).getCreatedAt());
} else {
assertThat(actual.size()).isEqualTo(3L);
assertThat(review3_1.getCreatedAt()).isEqualTo(actual.get(0).getCreatedAt());
}

System.out.println("review3.created_at" + review3_1.getCreatedAt());
System.out.println(actual.get(0).getContent());

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

0 comments on commit 152c92d

Please sign in to comment.