Skip to content

Commit 6f73258

Browse files
committed
test(community): 변수명 변경
1 parent 7e4f4c4 commit 6f73258

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/com/somemore/community/repository/CommunityCommentRepositoryTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ void createCommunityCommentReply() {
7878
.build();
7979

8080
//when
81-
CommunityComment savedComment = communityCommentRepository.save(communityCommentReply);
81+
CommunityComment savedCommentReply = communityCommentRepository.save(communityCommentReply);
8282

8383
//then
84-
assertThat(savedComment.getWriterId()).isEqualTo(writerId);
85-
assertThat(savedComment.getContent()).isEqualTo("커뮤니티 댓글 테스트 내용");
86-
assertThat(savedComment.getParentCommentId()).isEqualTo(1L);
84+
assertThat(savedCommentReply.getWriterId()).isEqualTo(writerId);
85+
assertThat(savedCommentReply.getContent()).isEqualTo("커뮤니티 댓글 테스트 내용");
86+
assertThat(savedCommentReply.getParentCommentId()).isEqualTo(1L);
8787
}
8888

8989
@DisplayName("댓글을 id로 조회할 수 있다. (Repository)")

0 commit comments

Comments
 (0)