Skip to content

Commit

Permalink
test: 테스트 문맥 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Invidam committed Jan 15, 2024
1 parent 5e822f9 commit 6ff904d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/java/in/koreatech/koin/acceptance/ShopApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,15 @@ void findMenuSingleOption() {
.shopId(1L)
.name("중식")
.build();
menuCategoryRepository.save(menuCategory);

MenuCategoryMap menuCategoryMap = MenuCategoryMap.create();

// when then
menuOption.setMenu(menu);
menuImage.setMenu(menu);

// when then
menuCategoryMap.map(menu, menuCategory);

menuCategoryRepository.save(menuCategory);
menuRepository.save(menu);

ExtractableResponse<Response> response = RestAssured
Expand Down Expand Up @@ -129,6 +128,7 @@ void findMenuMultipleOption() {
.build();

MenuCategoryMap menuCategoryMap = MenuCategoryMap.create();
menuCategoryRepository.save(menuCategory);

// when then
menuOption1.setMenu(menu);
Expand All @@ -138,7 +138,6 @@ void findMenuMultipleOption() {

menuCategoryMap.map(menu, menuCategory);

menuCategoryRepository.save(menuCategory);
menuRepository.save(menu);

ExtractableResponse<Response> response = RestAssured
Expand Down Expand Up @@ -205,6 +204,9 @@ void findShopMenuCategories() {
.shopId(SHOP_ID)
.name("메인 메뉴")
.build();

menuCategoryRepository.save(menuCategory1);
menuCategoryRepository.save(menuCategory2);

MenuCategoryMap menuCategoryMap1 = MenuCategoryMap.create();
MenuCategoryMap menuCategoryMap2 = MenuCategoryMap.create();
Expand All @@ -213,8 +215,6 @@ void findShopMenuCategories() {
menuCategoryMap1.map(menu, menuCategory1);
menuCategoryMap2.map(menu, menuCategory2);

menuCategoryRepository.save(menuCategory1);
menuCategoryRepository.save(menuCategory2);
menuRepository.save(menu);

ExtractableResponse<Response> response = RestAssured
Expand Down

0 comments on commit 6ff904d

Please sign in to comment.