@Configuration
@ConditionalOnExpression(value="${embedded.containers.enabled:true}")
@AutoConfigureAfter(value=com.playtika.test.common.spring.DockerPresenceBootstrapConfiguration.class)
@ConditionalOnProperty(name="embedded.mysql.enabled",
matchIfMissing=true)
@EnableConfigurationProperties(value=MySQLProperties.class)
public class EmbeddedMySQLBootstrapConfiguration
extends Object
| Constructor and Description |
|---|
EmbeddedMySQLBootstrapConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.testcontainers.containers.MySQLContainer |
mysql(org.springframework.core.env.ConfigurableEnvironment environment,
MySQLProperties properties) |
@Bean(name="embeddedMySQL",
destroyMethod="stop")
public org.testcontainers.containers.MySQLContainer mysql(org.springframework.core.env.ConfigurableEnvironment environment,
MySQLProperties properties)
Copyright © 2021. All rights reserved.