Skip to content

Commit fc0fb3e

Browse files
committed
test (refactor) : 이게 문제일까?!
1 parent 7db97bc commit fc0fb3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/example/solidconnection/community/comment/service/CommentServiceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ class 댓글_조회_테스트 {
7171
() -> assertThat(response.parentId()).isNull(),
7272
() -> assertThat(response.content()).isEqualTo(parentComment.getContent()),
7373
() -> assertThat(response.isOwner()).isTrue(),
74-
// () -> assertThat(response.createdAt()).isEqualTo(parentComment.getCreatedAt()),
75-
// () -> assertThat(response.updatedAt()).isEqualTo(parentComment.getUpdatedAt()),
74+
() -> assertThat(response.createdAt().toInstant()).isEqualTo(parentComment.getCreatedAt().toInstant()),
75+
() -> assertThat(response.updatedAt().toInstant()).isEqualTo(parentComment.getUpdatedAt().toInstant()),
7676

7777
() -> assertThat(response.postFindSiteUserResponse().id())
7878
.isEqualTo(parentComment.getSiteUser().getId()),

0 commit comments

Comments
 (0)