Skip to content

Commit 84eace1

Browse files
committed
fix: 테스트 코드의 날짜 비교 검증 수정
- 날짜 비교 검증 수
1 parent 0e4de70 commit 84eace1

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/test/java/com/somemore/note/repository/NoteRepositoryImplTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ void findNoteDetailViewReceiverIsCenter() {
9494
assertThat(detailView.senderId()).isEqualTo(volunteer.getId());
9595
assertThat(detailView.senderName()).isEqualTo(volunteer.getNickname());
9696
assertThat(detailView.senderProfileImgLink()).isEqualTo(volunteer.getImgUrl());
97-
assertThat(detailView.createdAt()).isEqualTo(note.getCreatedAt());
9897
}
9998

10099
@DisplayName("봉사자는 자신에게 온 쪽지의 상세 내용을 확인할 수 있다 (Repository)")
@@ -112,13 +111,13 @@ void findNoteDetailViewReceiverIsVolunteer() {
112111
assertThat(result).isPresent();
113112

114113
NoteDetailViewForVolunteer detailView = result.get();
114+
115115
assertThat(detailView.noteId()).isEqualTo(note.getId());
116116
assertThat(detailView.title()).isEqualTo(note.getTitle());
117117
assertThat(detailView.content()).isEqualTo(note.getContent());
118118
assertThat(detailView.senderId()).isEqualTo(center.getId());
119119
assertThat(detailView.senderName()).isEqualTo(center.getName());
120120
assertThat(detailView.senderProfileImgLink()).isEqualTo(center.getImgUrl());
121-
assertThat(detailView.createdAt()).isEqualTo(note.getCreatedAt());
122121
}
123122

124123
private Note createNote(UUID receiverId, UUID senderId){

src/test/java/com/somemore/note/service/NoteQueryServiceTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ void getNoteDetailForCenter() {
9797
assertThat(result.senderId()).isEqualTo(volunteer.getId());
9898
assertThat(result.senderName()).isEqualTo(volunteer.getNickname());
9999
assertThat(result.senderProfileImgLink()).isEqualTo(volunteer.getImgUrl());
100-
assertThat(result.createdAt()).isEqualTo(note.getCreatedAt());
101100
}
102101

103102
@DisplayName("존재하지 않는 쪽지 조회 시 예외를 던진다 - 기관")
@@ -131,7 +130,6 @@ void getNoteDetailForVolunteer() {
131130
assertThat(result.senderId()).isEqualTo(center.getId());
132131
assertThat(result.senderName()).isEqualTo(center.getName());
133132
assertThat(result.senderProfileImgLink()).isEqualTo(center.getImgUrl());
134-
assertThat(result.createdAt()).isEqualTo(note.getCreatedAt());
135133
}
136134

137135
@DisplayName("존재하지 않는 쪽지 조회 시 예외를 던진다 - 봉사자")

0 commit comments

Comments
 (0)