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 |
parameters, urlParameters
Constructor and Description |
---|
PostgreSQLContainer()
Deprecated.
use
PostgreSQLContainer(DockerImageName) instead |
PostgreSQLContainer(org.testcontainers.utility.DockerImageName dockerImageName) |
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, constructUrlParameters, constructUrlParameters, containerIsStarted, createConnection, getConnectTimeoutSeconds, getDatabaseDelegate, getJdbcDriverInstance, getStartupTimeoutSeconds, optionallyMapResourceParameterAsVolume, runInitScriptIfRequired, setParameters, withConnectTimeoutSeconds, withInitScript, withStartupTimeoutSeconds, withUrlParam
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canBeReused, containerIsCreated, containerIsStarted, containerIsStarting, containerIsStarting, containerIsStopped, containerIsStopping, copyFileFromContainer, createVolumeDirectory, dependsOn, dependsOn, dependsOn, doStart, equals, failed, finished, getBinds, getCommandParts, getContainerId, getContainerInfo, getContainerName, getCopyToFileContainerPathMap, getCreateContainerCmdModifiers, getDependencies, getDockerClient, 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, isShouldBeReused, 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, withImagePullPolicy, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withReuse, withSharedMemorySize, withStartupAttempts, withStartupCheckStrategy, withStartupTimeout, withTmpFs, withVolumesFrom, withWorkingDirectory
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getContainerName
addFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBind
copyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunning
public 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
@Deprecated public PostgreSQLContainer()
PostgreSQLContainer(DockerImageName)
insteadpublic PostgreSQLContainer(java.lang.String dockerImageName)
public PostgreSQLContainer(org.testcontainers.utility.DockerImageName 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>>