TestContainer Postgres

This commit is contained in:
2025-09-13 14:47:02 +02:00
parent 69657ddb0b
commit 17c3e6af8f
7 changed files with 160 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
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