diff --git a/online-book-store/src/test/java/com/amigoscode/cohort2d/onlinebookstore/AbstractTestcontainers.java b/online-book-store/src/test/java/com/amigoscode/cohort2d/onlinebookstore/AbstractTestcontainers.java index 9f0799f..840ac31 100644 --- a/online-book-store/src/test/java/com/amigoscode/cohort2d/onlinebookstore/AbstractTestcontainers.java +++ b/online-book-store/src/test/java/com/amigoscode/cohort2d/onlinebookstore/AbstractTestcontainers.java @@ -3,13 +3,14 @@ import org.flywaydb.core.Flyway; import org.junit.jupiter.api.BeforeAll; import org.springframework.test.context.ActiveProfiles; +import org.springframework.test.context.TestPropertySource; import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; @Testcontainers -@ActiveProfiles("test") +@TestPropertySource(properties = "spring.datasource.url=jdbc:tc:postgresql:latest:///admin-unit-test") public abstract class AbstractTestcontainers { @BeforeAll