Files
test-integration/src/main/kotlin/ltd/lulz/test/container/PostgresTestContainer.kt
2025-09-14 17:59:13 +02:00

16 lines
747 B
Kotlin

package ltd.lulz.test.container
import ltd.lulz.test.container.extension.PostgresTestExtension
import ltd.lulz.test.container.postgres.PostgresTestListener
import org.junit.jupiter.api.extension.ExtendWith
import org.springframework.test.context.ContextConfiguration
import org.springframework.test.context.TestExecutionListeners
import org.springframework.test.context.TestExecutionListeners.MergeMode.MERGE_WITH_DEFAULTS
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME)
@ExtendWith(PostgresTestExtension::class)
@ContextConfiguration(initializers = [PostgresTestExtension::class])
@TestExecutionListeners(listeners = [PostgresTestListener::class], mergeMode = MERGE_WITH_DEFAULTS)
annotation class PostgresTestContainer