ДК
Size: a a a
ДК
I
ДК
ДК
AM
ДК
AM
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());
}
}ДК
AM
I
AM
AM
ДК
d
VG
ДК
I