From acb72b8f0cfb46703f62cbea80c4095f7747bf10 Mon Sep 17 00:00:00 2001 From: kkangh00n Date: Wed, 10 Jan 2024 18:42:06 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=EA=B0=81=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=EB=A7=88=EB=8B=A4=20Repository=20deleteAll?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../catchtable/shop/repository/ShopRepositoryTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/com/prgrms/catchtable/shop/repository/ShopRepositoryTest.java b/src/test/java/com/prgrms/catchtable/shop/repository/ShopRepositoryTest.java index 940846ce..179f0d2e 100644 --- a/src/test/java/com/prgrms/catchtable/shop/repository/ShopRepositoryTest.java +++ b/src/test/java/com/prgrms/catchtable/shop/repository/ShopRepositoryTest.java @@ -8,6 +8,7 @@ import com.prgrms.catchtable.shop.dto.request.ShopSearchCondition; import com.prgrms.catchtable.shop.fixture.ShopFixture; import java.util.List; +import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; @@ -21,6 +22,11 @@ class ShopRepositoryTest { @Autowired private ShopRepository shopRepository; + @BeforeEach + void init() { + shopRepository.deleteAll(); + } + @Test @DisplayName("이름 검색을 통해 Shop을 조회할 수 있다.") void findNameSearchTest() {