From ad52b94f28b295c8216731fa9d8a2e6fd1ee2d04 Mon Sep 17 00:00:00 2001 From: Ahn Jiwan Date: Fri, 10 Nov 2023 11:57:59 +0900 Subject: [PATCH] =?UTF-8?q?:white=5Fcheck=5Fmark:=20test:=20yy,mm,dd=20?= =?UTF-8?q?=ED=8C=8C=EB=9D=BC=EB=AF=B8=ED=84=B0=EC=97=90=EC=84=9C=20LocalD?= =?UTF-8?q?ate=EC=9C=BC=EB=A1=9C=20=ED=98=95=EB=B3=80=ED=99=98=20=EB=90=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(#62)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/diareat/diareat/controller/FoodControllerTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);