skip to Main Content

Mongodb – @DynamicPropertySource not being invoked (Kotlin, Spring Boot and TestContainers)

I'm trying to define a @TestConfiguration class that is executed once before all integration tests to run a MongoDB TestContainer in Kotlin in a Spring Boot project. Here is the code: import org.springframework.boot.test.context.TestConfiguration import org.springframework.test.context.DynamicPropertyRegistry import org.springframework.test.context.DynamicPropertySource import org.testcontainers.containers.MongoDBContainer import…

VIEW QUESTION
Back To Top
Search