diff --git a/src/test/java/com/moabam/api/presentation/RoomControllerTest.java b/src/test/java/com/moabam/api/presentation/RoomControllerTest.java index a1c850e7..765d6f38 100644 --- a/src/test/java/com/moabam/api/presentation/RoomControllerTest.java +++ b/src/test/java/com/moabam/api/presentation/RoomControllerTest.java @@ -850,7 +850,7 @@ void get_room_details_test() throws Exception { dailyRoomCertificationRepository.save(dailyRoomCertification); DailyRoomCertification dailyRoomCertification1 = RoomFixture.dailyRoomCertification(room.getId(), - LocalDate.of(LocalDate.now().getYear(), LocalDate.now().getMonth(), LocalDate.now().getDayOfMonth() - 3)); + LocalDate.now().minusDays(3)); dailyRoomCertificationRepository.save(dailyRoomCertification1); // expected