Skip to content

Commit

Permalink
[Test] : CommentRepositoryTest 필요없는 주석 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
wellbeing-dough committed Nov 26, 2023
1 parent 34a961a commit cf3e595
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,15 @@ class CommentRepositoryTest {
CommentEntity comment2 = CommentEntityFixture.COMMENT_2.commentEntity_생성(2L, userId, postId);
commentRepository.save(comment1);
commentRepository.save(comment2);

// when
Pageable pageable = PageRequest.of(0, 10);
Slice<CommentResponse> comments = commentRepository.findSliceByPostIdWithUserId(1L, userId, pageable);

// then
assertThat(comments.getContent()).hasSize(2);

System.out.println(comments);

CommentResponse commentResponse1 = comments.getContent().get(1);
CommentResponse commentResponse2 = comments.getContent().get(0);

System.out.println("**************commentResponse1: " + commentResponse1.getCreatedDate());
System.out.println("**************commentResponse2: " + commentResponse2.getCreatedDate());
System.out.println("**************commentResponse1: " + commentResponse1.getContent());
System.out.println("**************commentResponse2: " + commentResponse2.getContent());

assertAll(
() -> assertEquals(comment1.getId(), commentResponse1.getCommentId()),
() -> assertEquals(comment1.getContent(), commentResponse1.getContent()),
Expand Down

0 comments on commit cf3e595

Please sign in to comment.