Skip to content

Commit

Permalink
✅ test: 로직 수정에 따른 테스트 코드 수정 (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
synoti21 committed Dec 2, 2023
1 parent 08c6526 commit 6ceceb6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ResponseNutritionSumByDateDto> expectedResponse = ApiResponse.success(responseNutritionSumByDateDto,ResponseCode.FOOD_READ_SUCCESS.getMessage());
when(foodService.getNutritionSumByDate(any(Long.class),any(LocalDate.class))).thenReturn(responseNutritionSumByDateDto);

Expand Down Expand Up @@ -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<ResponseNutritionSumByDateDto> 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);

Expand Down Expand Up @@ -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<ResponseNutritionSumByDateDto> 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);

Expand Down

0 comments on commit 6ceceb6

Please sign in to comment.