d
Size: a a a
d
ОД
AV
AV
ДК
d
public class AbstractIntegrationTest {
private static final String IMAGE_VERSION = "postgres:12.1";
private static final String DB_NAME = «test»;
public static final String USERNAME = "root";
public static final String PASSWORD = "root";
public static PostgreSQLContainer postgres = new PostgreSQLContainer<>(IMAGE_VERSION).withDatabaseName(DB_NAME)
.withUsername(USERNAME)
.withPassword(PASSWORD);
static {
postgres.start();
System.setProperty("spring.datasource.url", postgres.getJdbcUrl());
}
}I
ДК
AV
ОД
d
AV