Skip to content

Commit 78622a9

Browse files
committed
feat: 테스트 수정
1 parent 0ced1c9 commit 78622a9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/java/com/somemore/recruitboard/service/command/UpdateRecruitBoardServiceTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ void updateRecruitBoard() {
8686

8787
VolunteerInfo volunteerInfo = updatedRecruitBoard.getVolunteerInfo();
8888
assertThat(volunteerInfo.getRecruitmentCount()).isEqualTo(dto.recruitmentCount());
89-
assertThat(volunteerInfo.getVolunteerStartDateTime()).isEqualTo(
90-
dto.volunteerStartDateTime());
91-
assertThat(volunteerInfo.getVolunteerEndDateTime()).isEqualTo(dto.volunteerEndDateTime());
89+
assertThat(volunteerInfo.getVolunteerStartDateTime()
90+
.compareTo(dto.volunteerStartDateTime())).isZero();
91+
assertThat(volunteerInfo.getVolunteerEndDateTime()
92+
.compareTo(dto.volunteerEndDateTime())).isZero();
9293
assertThat(volunteerInfo.getVolunteerType()).isEqualTo(dto.volunteerType());
9394
assertThat(volunteerInfo.getAdmitted()).isEqualTo(dto.admitted());
9495
}

0 commit comments

Comments
 (0)