Skip to content

Commit

Permalink
[fix] Menu 생성자에 수량 추가로 인한 컴파일 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
june-777 committed Aug 16, 2024
1 parent 1af93fc commit 754e122
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private MenuCategory createMenuCategory(Store store, String name) {
}

private Menu createMenu(Store store, MenuCategory menuCategory, String name, int price) {
Menu menu1 = new Menu(store, menuCategory, name, price, "imageUrl");
Menu menu1 = new Menu(store, menuCategory, name, price, 1L, "imageUrl");
menuRepository.saveAndFlush(menu1);

return menu1;
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/camp/woowak/lab/menu/TestMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class TestMenu extends Menu {

public TestMenu(Long id, Store store, MenuCategory menuCategory,
String name, Integer price) {
super(store, menuCategory, name, price, "imageUrl");
super(store, menuCategory, name, price, 50L, "imageUrl");
this.id = id;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ private MenuCategory createMenuCategory(Store store, String name) {
}

private Menu createMenu(Store store, MenuCategory menuCategory, String name, int price) {
Menu menu1 = new Menu(store, menuCategory, name, price, "imageUrl");
Menu menu1 = new Menu(store, menuCategory, name, price, 1L, "imageUrl");
menuRepository.saveAndFlush(menu1);

return menu1;
Expand Down

0 comments on commit 754e122

Please sign in to comment.