fix(customer-vue): 메시지 수정, waring 수정

This commit is contained in:
hoon7566
2022-03-18 20:22:41 +09:00
parent 5b75ef1b74
commit a22ca6cd4b
6 changed files with 13 additions and 18 deletions

View File

@@ -49,29 +49,27 @@ class CategoryOwnerApiControllerTest {
@DisplayName("카테고리리스트_가져오기_성공")
void getCategoryList_success() throws Exception {
//given
Long storeId = 1L;
List<CategoryDto> categoryDtoList = new ArrayList<>();
categoryDtoList.add(CategoryDto.builder()
.id(10L)
.name("테고리1")
.name("페인")
.items(List.of(new ItemDto(1L,"아메리카노",null,5000L)
,new ItemDto(1L,"카페라테",null,5000L)))
,new ItemDto(2L,"카페라테",null,5000L)))
.order(1)
.build());
categoryDtoList.add(CategoryDto.builder()
.id(11L)
.name("카테고리2")
.items(List.of(new ItemDto(1L,"비스킷",null,5000L)
,new ItemDto(1L,"와플",null,5000L)))
.name("디저트")
.items(List.of(new ItemDto(3L,"비스킷",null,5000L)
,new ItemDto(4L,"와플",null,5000L)))
.order(2)
.build());
given(categoryService.getCategoriesWithItem(any())).willReturn(categoryDtoList);
given(categoryService.getCategoriesWithItemByUserId(any())).willReturn(categoryDtoList);
//when
ResultActions actions = mockMvc.perform(MockMvcRequestBuilders.get("/api/owner/category")
.param("storeId",String.valueOf(storeId))
.header("user-id","2")
);