From 754e12227fe1fe62a88cdcb451bc9806db4bdaad Mon Sep 17 00:00:00 2001 From: june-777 Date: Fri, 16 Aug 2024 11:05:58 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20Menu=20=EC=83=9D=EC=84=B1=EC=9E=90?= =?UTF-8?q?=EC=97=90=20=EC=88=98=EB=9F=89=20=EC=B6=94=EA=B0=80=EB=A1=9C=20?= =?UTF-8?q?=EC=9D=B8=ED=95=9C=20=EC=BB=B4=ED=8C=8C=EC=9D=BC=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/camp/woowak/lab/cart/service/CartServiceTest.java | 2 +- src/test/java/camp/woowak/lab/menu/TestMenu.java | 2 +- .../camp/woowak/lab/web/api/cart/CartApiControllerTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/camp/woowak/lab/cart/service/CartServiceTest.java b/src/test/java/camp/woowak/lab/cart/service/CartServiceTest.java index dbf3db64..51919fa5 100644 --- a/src/test/java/camp/woowak/lab/cart/service/CartServiceTest.java +++ b/src/test/java/camp/woowak/lab/cart/service/CartServiceTest.java @@ -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; diff --git a/src/test/java/camp/woowak/lab/menu/TestMenu.java b/src/test/java/camp/woowak/lab/menu/TestMenu.java index 54b2f4f8..7e20ee23 100644 --- a/src/test/java/camp/woowak/lab/menu/TestMenu.java +++ b/src/test/java/camp/woowak/lab/menu/TestMenu.java @@ -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; } diff --git a/src/test/java/camp/woowak/lab/web/api/cart/CartApiControllerTest.java b/src/test/java/camp/woowak/lab/web/api/cart/CartApiControllerTest.java index e06b7ee5..b47b97e9 100644 --- a/src/test/java/camp/woowak/lab/web/api/cart/CartApiControllerTest.java +++ b/src/test/java/camp/woowak/lab/web/api/cart/CartApiControllerTest.java @@ -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;