Set up postgresql testcontainers
- add .json to .editorconfig - add spring-configuration-metadata.json - update README.md - add testcontainers dependencies - add PostgresContainer - add PostgresInitializer
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package ltd.hlaeja.test.container
|
||||
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
import org.springframework.test.context.ContextConfiguration
|
||||
|
||||
@Suppress("unused")
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@ExtendWith(PostgresExtension::class)
|
||||
@ContextConfiguration(initializers = [PostgresInitializer::class])
|
||||
annotation class PostgresContainer
|
||||
Reference in New Issue
Block a user