public class PostgreSQLContainer<SELF extends PostgreSQLContainer<SELF>> extends JdbcDatabaseContainer<SELF>
GenericContainer.AbstractWaitStrategyContainer.ExecResult| Modifier and Type | Field and Description |
|---|---|
static Integer |
POSTGRESQL_PORT |
parametersCONTAINER_RUNNING_TIMEOUT_SEC, containerId, containerName, dockerClient, dockerDaemonInfo, waitStrategy| Constructor and Description |
|---|
PostgreSQLContainer() |
PostgreSQLContainer(String dockerImageName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure() |
String |
getDriverClassName() |
String |
getJdbcUrl() |
protected Integer |
getLivenessCheckPort() |
String |
getPassword() |
String |
getTestQueryString() |
String |
getUsername() |
protected void |
waitUntilContainerStarted() |
SELF |
withDatabaseName(String databaseName) |
SELF |
withPassword(String password) |
SELF |
withUsername(String username) |
addParameter, createConnection, getJdbcDriverInstance, optionallyMapResourceParameterAsVolume, setParametersaddEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addLink, canEqual, close, containerIsStarted, containerIsStarting, createVolumeDirectory, equals, execInContainer, execInContainer, fetchDockerDaemonInfo, finished, followOutput, followOutput, getBinds, getCommandParts, getContainerId, getContainerInfo, getContainerIpAddress, getContainerName, getCreateContainerCmdModifiers, getDockerClient, getDockerDaemonInfo, getDockerImageName, getEnv, getExposedPorts, getExtraHosts, getImage, getIpAddress, getLinkedContainers, getLogConsumers, getMappedPort, getNetwork, getNetworkAliases, getNetworkMode, getPortBindings, getStartupAttempts, getStartupCheckStrategy, getTestHostIpAddress, getVolumesFroms, getWaitStrategy, getWorkingDirectory, hashCode, isPrivilegedMode, isRunning, logger, setBinds, setCommand, setCommand, setCommandParts, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setImage, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setStartupAttempts, setStartupCheckStrategy, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, starting, stop, toString, waitingFor, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCreateContainerCmdModifier, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withStartupAttempts, withStartupCheckStrategy, withStartupTimeout, withVolumesFrom, withWorkingDirectoryapply, failed, succeededclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetContainerNameaddFileSystemBind, getFirstMappedPort, selfpublic static final Integer POSTGRESQL_PORT
public PostgreSQLContainer()
public PostgreSQLContainer(String dockerImageName)
protected Integer getLivenessCheckPort()
getLivenessCheckPort in class JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>protected void configure()
configure in class GenericContainer<SELF extends PostgreSQLContainer<SELF>>public String getDriverClassName()
getDriverClassName in class JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>public String getJdbcUrl()
getJdbcUrl in class JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>public String getUsername()
getUsername in class JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>public String getPassword()
getPassword in class JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>public String getTestQueryString()
getTestQueryString in class JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>protected void waitUntilContainerStarted()
waitUntilContainerStarted in class JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>Copyright © 2017. All rights reserved.