TestContainer Postgres
All checks were successful
Gradle Build on PR / call-gradle-build (pull_request) Successful in 2m41s
Publish Snapshot / call-publish (push) Successful in 2m40s

This commit was merged in pull request #1.
This commit is contained in:
2025-09-13 14:47:02 +02:00
parent d9c82b07e0
commit 3b7974793b
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