public class PostgreSQLContainer<SELF extends PostgreSQLContainer<SELF>>
extends org.testcontainers.containers.JdbcDatabaseContainer<SELF>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_TAG |
static java.lang.String |
IMAGE |
static java.lang.String |
NAME |
static java.lang.Integer |
POSTGRESQL_PORT |
| Constructor and Description |
|---|
PostgreSQLContainer() |
PostgreSQLContainer(java.lang.String dockerImageName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure() |
java.lang.String |
getDatabaseName() |
java.lang.String |
getDriverClassName() |
java.lang.String |
getJdbcUrl() |
protected @NotNull java.util.Set<java.lang.Integer> |
getLivenessCheckPorts() |
java.lang.String |
getPassword() |
java.lang.String |
getTestQueryString() |
java.lang.String |
getUsername() |
protected void |
waitUntilContainerStarted() |
SELF |
withDatabaseName(java.lang.String databaseName) |
SELF |
withPassword(java.lang.String password) |
SELF |
withUsername(java.lang.String username) |
addParameter, constructUrlForConnection, containerIsStarted, createConnection, getConnectTimeoutSeconds, getDatabaseDelegate, getJdbcDriverInstance, getStartupTimeoutSeconds, optionallyMapResourceParameterAsVolume, runInitScriptIfRequired, setParameters, withConnectTimeoutSeconds, withInitScript, withStartupTimeoutSecondsaddEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canEqual, containerIsCreated, containerIsStarting, copyFileFromContainer, copyFileFromContainer, copyFileToContainer, copyFileToContainer, createVolumeDirectory, doStart, equals, execInContainer, execInContainer, failed, fetchDockerDaemonInfo, finished, getBinds, getCommandParts, getContainerId, getContainerInfo, getContainerName, getCopyToFileContainerPathMap, getCreateContainerCmdModifiers, getDockerClient, getDockerDaemonInfo, getDockerImageName, getEnv, getEnvMap, getExposedPorts, getExtraHosts, getImage, getIpAddress, getLabels, getLinkedContainers, getLivenessCheckPort, getLivenessCheckPortNumbers, getLogConsumers, getNetwork, getNetworkAliases, getNetworkMode, getPortBindings, getShmSize, getStartupAttempts, getStartupCheckStrategy, getTestHostIpAddress, getTmpFsMapping, getVolumesFroms, getWaitStrategy, getWorkingDirectory, hashCode, isPrivilegedMode, logger, setBinds, setCommand, setCommand, setCommandParts, setCopyToFileContainerPathMap, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setImage, setLabels, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setShmSize, setStartupAttempts, setStartupCheckStrategy, setTmpFsMapping, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, starting, stop, succeeded, toString, waitingFor, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withCreateContainerCmdModifier, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withSharedMemorySize, withStartupAttempts, withStartupCheckStrategy, withStartupTimeout, withTmpFs, withVolumesFrom, withWorkingDirectoryclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetContainerNameaddFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBindpublic static final java.lang.String NAME
public static final java.lang.String IMAGE
public static final java.lang.String DEFAULT_TAG
public static final java.lang.Integer POSTGRESQL_PORT
public PostgreSQLContainer()
public PostgreSQLContainer(java.lang.String dockerImageName)
@NotNull protected @NotNull java.util.Set<java.lang.Integer> getLivenessCheckPorts()
getLivenessCheckPorts in class org.testcontainers.containers.GenericContainer<SELF extends PostgreSQLContainer<SELF>>protected void configure()
configure in class org.testcontainers.containers.GenericContainer<SELF extends PostgreSQLContainer<SELF>>public java.lang.String getDriverClassName()
getDriverClassName in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>public java.lang.String getJdbcUrl()
getJdbcUrl in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>public java.lang.String getDatabaseName()
getDatabaseName in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>public java.lang.String getUsername()
getUsername in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>public java.lang.String getPassword()
getPassword in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>public java.lang.String getTestQueryString()
getTestQueryString in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>public SELF withDatabaseName(java.lang.String databaseName)
withDatabaseName in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>public SELF withUsername(java.lang.String username)
withUsername in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>public SELF withPassword(java.lang.String password)
withPassword in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>protected void waitUntilContainerStarted()
waitUntilContainerStarted in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>