diff --git a/src/test/java/com/diareat/diareat/controller/FoodControllerTest.java b/src/test/java/com/diareat/diareat/controller/FoodControllerTest.java index 413d53f..57cbba7 100644 --- a/src/test/java/com/diareat/diareat/controller/FoodControllerTest.java +++ b/src/test/java/com/diareat/diareat/controller/FoodControllerTest.java @@ -96,7 +96,10 @@ void testSaveFood() throws Exception { @WithMockUser("test") void testGetFoodListByDate() throws Exception { //Given - LocalDate date = LocalDate.now(); + int yy = 2023; + int dd = 22; + int mm = 12; + LocalDate date = LocalDate.of(yy, mm, dd); ResponseFoodDto food1 = ResponseFoodDto.of(testFoodId, testUserId,"test", LocalDate.now(), LocalTime.now(),testBaseNutrition,false);