Package com.playtika.test.postgresql
Class EmbeddedPostgreSQLBootstrapConfiguration
- java.lang.Object
-
- com.playtika.test.postgresql.EmbeddedPostgreSQLBootstrapConfiguration
-
@Configuration @ConditionalOnExpression("${embedded.containers.enabled:true}") @AutoConfigureAfter(com.playtika.test.common.spring.DockerPresenceBootstrapConfiguration.class) @ConditionalOnProperty(name="embedded.postgresql.enabled", matchIfMissing=true) @EnableConfigurationProperties(PostgreSQLProperties.class) public class EmbeddedPostgreSQLBootstrapConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description EmbeddedPostgreSQLBootstrapConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.testcontainers.containers.PostgreSQLContainerpostgresql(org.springframework.core.env.ConfigurableEnvironment environment, PostgreSQLProperties properties)
-
-
-
Method Detail
-
postgresql
@Bean(name="embeddedPostgreSql", destroyMethod="stop") public org.testcontainers.containers.PostgreSQLContainer postgresql(org.springframework.core.env.ConfigurableEnvironment environment, PostgreSQLProperties properties)
-
-