From 6ceceb63efed2986b954ddb3ae5260fa82a2fc68 Mon Sep 17 00:00:00 2001 From: Ahn Jiwan Date: Sat, 2 Dec 2023 22:30:29 +0900 Subject: [PATCH] =?UTF-8?q?:white=5Fcheck=5Fmark:=20test:=20=EB=A1=9C?= =?UTF-8?q?=EC=A7=81=20=EC=88=98=EC=A0=95=EC=97=90=20=EB=94=B0=EB=A5=B8=20?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=BD=94=EB=93=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(#129)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/diareat/diareat/controller/FoodControllerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/diareat/diareat/controller/FoodControllerTest.java b/src/test/java/com/diareat/diareat/controller/FoodControllerTest.java index f73b5b9..cbfe8ed 100644 --- a/src/test/java/com/diareat/diareat/controller/FoodControllerTest.java +++ b/src/test/java/com/diareat/diareat/controller/FoodControllerTest.java @@ -277,7 +277,7 @@ void testGetNutritionSumByDate() throws Exception{ LocalDate date = LocalDate.of(2021,10,10); ResponseNutritionSumByDateDto responseNutritionSumByDateDto = ResponseNutritionSumByDateDto.of(testUserId,date,1 ,500,100,50,50,0.2,0.3,0.4,0.5, - BaseNutrition.createNutrition(500,100,50,50)); + BaseNutrition.createNutrition(500,100,50,50), false); ApiResponse expectedResponse = ApiResponse.success(responseNutritionSumByDateDto,ResponseCode.FOOD_READ_SUCCESS.getMessage()); when(foodService.getNutritionSumByDate(any(Long.class),any(LocalDate.class))).thenReturn(responseNutritionSumByDateDto); @@ -315,7 +315,7 @@ void testGetNutritionSumByWeek() throws Exception { LocalDate date = LocalDate.of(2021, 10, 10); ResponseNutritionSumByDateDto responseNutritionSumByDateDto = ResponseNutritionSumByDateDto.of(testUserId, date, 7 , 500, 100, 50, 50, 0.2, 0.3, 0.4, 0.5, - BaseNutrition.createNutrition(500, 100, 50, 50)); + BaseNutrition.createNutrition(500, 100, 50, 50), false); ApiResponse expectedResponse = ApiResponse.success(responseNutritionSumByDateDto, ResponseCode.FOOD_READ_SUCCESS.getMessage()); when(foodService.getNutritionSumByWeek(any(Long.class), any(int.class), any(int.class), any(int.class))).thenReturn(responseNutritionSumByDateDto); @@ -353,7 +353,7 @@ void testGetNutritionSumByMonth() throws Exception { LocalDate date = LocalDate.of(2021, 10, 10); ResponseNutritionSumByDateDto responseNutritionSumByDateDto = ResponseNutritionSumByDateDto.of(testUserId, date, 30 , 500, 100, 50, 50, 0.2, 0.3, 0.4, 0.5, - BaseNutrition.createNutrition(500, 100, 50, 50)); + BaseNutrition.createNutrition(500, 100, 50, 50), false); ApiResponse expectedResponse = ApiResponse.success(responseNutritionSumByDateDto, ResponseCode.FOOD_READ_SUCCESS.getMessage()); when(foodService.getNutritionSumByMonth(any(Long.class), any(int.class), any(int.class), any(int.class))).thenReturn(responseNutritionSumByDateDto);