NB
Size: a a a
NB
NB
NB
NB
public PostgreSQLContainer() {
this("postgres:9.6.12");
}
public PostgreSQLContainer(String dockerImageName) {
super(dockerImageName);
this.databaseName = "test";
this.username = "test";
this.password = "test";
this.waitStrategy = (new LogMessageWaitStrategy()).withRegEx(".*database system is ready to accept connections.*\\s").withTimes(2).withStartupTimeout(Duration.of(60L, ChronoUnit.SECONDS));
}
NB
NB
NB
NB
A
waitingFor(Wait.forHealthcheck())
NB
SE
d