From f2a2df92da204cf431f9769fd59dbccc792054e1 Mon Sep 17 00:00:00 2001 From: dong_yxxn Date: Fri, 15 Nov 2024 03:28:30 +0900 Subject: [PATCH 1/2] =?UTF-8?q?transaction=20=EC=B6=94=EA=B0=80=EB=A1=9C?= =?UTF-8?q?=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=98=A4=EB=A5=98=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../team7/inplace/review/persistence/ReviewRepositoryTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/team7/inplace/review/persistence/ReviewRepositoryTest.java b/src/test/java/team7/inplace/review/persistence/ReviewRepositoryTest.java index 20978fc8..09f0972a 100644 --- a/src/test/java/team7/inplace/review/persistence/ReviewRepositoryTest.java +++ b/src/test/java/team7/inplace/review/persistence/ReviewRepositoryTest.java @@ -11,6 +11,7 @@ import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.transaction.annotation.Transactional; import team7.inplace.config.annotation.CustomRepositoryTest; import team7.inplace.place.domain.Place; import team7.inplace.review.domain.Review; @@ -19,6 +20,7 @@ import team7.inplace.user.domain.UserType; @CustomRepositoryTest +@Transactional class ReviewRepositoryTest { @PersistenceContext From e4486f5b653e227fb181a23dc7b60df1d178b228 Mon Sep 17 00:00:00 2001 From: dong_yxxn Date: Fri, 15 Nov 2024 03:32:38 +0900 Subject: [PATCH 2/2] =?UTF-8?q?AutoConfigurationTestDatabase=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=ED=95=B4=EC=84=9C=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=EA=B0=80=20=EB=8F=85=EB=A6=BD=EC=A0=81=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EC=8B=9C=ED=96=89=EB=90=98=EB=8F=84=EB=A1=9D=20=ED=95=98?= =?UTF-8?q?=EC=98=80=EC=8A=B5=EB=8B=88=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../team7/inplace/review/persistence/ReviewRepositoryTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/team7/inplace/review/persistence/ReviewRepositoryTest.java b/src/test/java/team7/inplace/review/persistence/ReviewRepositoryTest.java index 09f0972a..ec9209dc 100644 --- a/src/test/java/team7/inplace/review/persistence/ReviewRepositoryTest.java +++ b/src/test/java/team7/inplace/review/persistence/ReviewRepositoryTest.java @@ -11,6 +11,7 @@ import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase; import org.springframework.transaction.annotation.Transactional; import team7.inplace.config.annotation.CustomRepositoryTest; import team7.inplace.place.domain.Place; @@ -21,6 +22,7 @@ @CustomRepositoryTest @Transactional +@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE) class ReviewRepositoryTest { @PersistenceContext