From 87514d104bd9eecb39bdd175248c8f607bba1f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=87=E1=85=A1=E1=86=A8=E1=84=8C=E1=85=B5=E1=84=92?= =?UTF-8?q?=E1=85=A7=E1=86=A8?= Date: Tue, 3 Sep 2024 12:01:27 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20import=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/kaboo/kaboo_auth/KabooAuthApplicationTests.java | 1 + .../java/kaboo/kaboo_auth/repository/MemberRepositoryTest.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/test/java/kaboo/kaboo_auth/KabooAuthApplicationTests.java b/src/test/java/kaboo/kaboo_auth/KabooAuthApplicationTests.java index af9cdf9..3da9996 100644 --- a/src/test/java/kaboo/kaboo_auth/KabooAuthApplicationTests.java +++ b/src/test/java/kaboo/kaboo_auth/KabooAuthApplicationTests.java @@ -2,6 +2,7 @@ import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.ActiveProfiles; @SpringBootTest @ActiveProfiles("test") diff --git a/src/test/java/kaboo/kaboo_auth/repository/MemberRepositoryTest.java b/src/test/java/kaboo/kaboo_auth/repository/MemberRepositoryTest.java index b1c8d0f..8142fd9 100644 --- a/src/test/java/kaboo/kaboo_auth/repository/MemberRepositoryTest.java +++ b/src/test/java/kaboo/kaboo_auth/repository/MemberRepositoryTest.java @@ -8,6 +8,7 @@ import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest; +import org.springframework.test.context.ActiveProfiles; import org.springframework.transaction.annotation.Transactional; import kaboo.kaboo_auth.domain.entity.Member; @@ -15,6 +16,7 @@ @DataJpaTest @Transactional @DisplayName("Member Repository Test") +@ActiveProfiles("test") class MemberRepositoryTest { @Autowired MemberRepository memberRepository;