Skip to content

Commit

Permalink
test: 음식 Controller 테스트 코드 Dto 수정 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeong-hyeok committed Oct 24, 2023
1 parent 18bf48a commit 251968d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ void setUp() {
//given
PageRequest pageable = PageRequest.of(0, 2);
List<FoodSearchResponseDto> 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<FoodSearchResponseDto> response = new SliceImpl<>(dtos, pageable, false);

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

0 comments on commit 251968d

Please sign in to comment.