public class PostgreSQLContainer<SELF extends PostgreSQLContainer<SELF>>
extends org.testcontainers.containers.JdbcDatabaseContainer<SELF>
| Modifier and Type | Field and Description |
|---|---|
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, createConnection, getConnectTimeoutSeconds, getJdbcDriverInstance, getStartupTimeoutSeconds, optionallyMapResourceParameterAsVolume, setParametersaddEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, canEqual, close, containerIsStarted, containerIsStarting, copyFileFromContainer, copyFileToContainer, createVolumeDirectory, equals, execInContainer, execInContainer, fetchDockerDaemonInfo, finished, getBinds, getCommandParts, getContainerId, getContainerInfo, getContainerName, getCreateContainerCmdModifiers, getDockerClient, getDockerDaemonInfo, getDockerImageName, getEnv, getEnvMap, getExposedPorts, getExtraHosts, getImage, getIpAddress, getLinkedContainers, getLivenessCheckPort, getLivenessCheckPortNumbers, getLogConsumers, getNetwork, getNetworkAliases, getNetworkMode, getPortBindings, getStartupAttempts, getStartupCheckStrategy, getTestHostIpAddress, getVolumesFroms, getWaitStrategy, getWorkingDirectory, hashCode, isPrivilegedMode, 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, waitgetContainerNamepublic 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>>