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;