diff --git a/src/test/java/com/project/mapdagu/domain/food/controller/FoodControllerTest.java b/src/test/java/com/project/mapdagu/domain/food/controller/FoodControllerTest.java index c975e27..34eb3d7 100644 --- a/src/test/java/com/project/mapdagu/domain/food/controller/FoodControllerTest.java +++ b/src/test/java/com/project/mapdagu/domain/food/controller/FoodControllerTest.java @@ -56,8 +56,8 @@ void setUp() { //given PageRequest pageable = PageRequest.of(0, 2); List dtos = new ArrayList<>(); - dtos.add(new FoodSearchResponseDto("신라면", "1", 3400)); - dtos.add(new FoodSearchResponseDto("진라면", "2", 1270)); + dtos.add(new FoodSearchResponseDto(1L, "신라면", "1", 3400)); + dtos.add(new FoodSearchResponseDto(2L, "진라면", "2", 1270)); Slice response = new SliceImpl<>(dtos, pageable, false); //when @@ -93,7 +93,7 @@ void setUp() { void 음식_상세_정보_조회() throws Exception { //given Long foodId = 1L; - FoodGetResponseDto responseDto = new FoodGetResponseDto(foodId, "신라면", "1", true, 5); + FoodGetResponseDto responseDto = new FoodGetResponseDto(foodId, "신라면", "1", 3400, true, 5); //when when(foodService.getOneFood(anyString(), anyLong())).thenReturn(responseDto);