Package org.testcontainers.containers
Class PostgreSQLContainer<SELF extends PostgreSQLContainer<SELF>>
java.lang.Object
org.testcontainers.containers.GenericContainer<SELF>
org.testcontainers.containers.JdbcDatabaseContainer<SELF>
org.testcontainers.containers.PostgreSQLContainer<SELF>
- All Implemented Interfaces:
AutoCloseable,org.testcontainers.containers.Container<SELF>,org.testcontainers.containers.ContainerState,org.testcontainers.containers.traits.LinkableContainer,org.testcontainers.containers.wait.strategy.WaitStrategyTarget,org.testcontainers.lifecycle.Startable
@Deprecated
public class PostgreSQLContainer<SELF extends PostgreSQLContainer<SELF>>
extends org.testcontainers.containers.JdbcDatabaseContainer<SELF>
Deprecated.
Testcontainers implementation for PostgreSQL.
Supported images: postgres, pgvector/pgvector
Exposed ports: 5432
-
Nested Class Summary
Nested classes/interfaces inherited from class org.testcontainers.containers.JdbcDatabaseContainer
org.testcontainers.containers.JdbcDatabaseContainer.NoDriverFoundExceptionNested classes/interfaces inherited from interface org.testcontainers.containers.Container
org.testcontainers.containers.Container.ExecResult -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final IntegerDeprecated.Fields inherited from class org.testcontainers.containers.JdbcDatabaseContainer
parameters, urlParametersFields inherited from class org.testcontainers.containers.GenericContainer
CONTAINER_RUNNING_TIMEOUT_SEC, dependencies, dockerClient, INTERNAL_HOST_HOSTNAME, waitStrategyFields inherited from interface org.testcontainers.containers.ContainerState
STATE_HEALTHY -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.usePostgreSQLContainer(DockerImageName)orPostgreSQLContainer(String)insteadPostgreSQLContainer(String dockerImageName) Deprecated.PostgreSQLContainer(org.testcontainers.utility.DockerImageName dockerImageName) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.useGenericContainer.getLivenessCheckPortNumbers()insteadDeprecated.Deprecated.Deprecated.protected voidDeprecated.withDatabaseName(String databaseName) Deprecated.withPassword(String password) Deprecated.withUsername(String username) Deprecated.Methods inherited from class org.testcontainers.containers.JdbcDatabaseContainer
addParameter, constructUrlForConnection, constructUrlParameters, constructUrlParameters, containerIsStarted, createConnection, createConnection, getConnectTimeoutSeconds, getDatabaseDelegate, getJdbcDriverInstance, getStartupTimeoutSeconds, optionallyMapResourceParameterAsVolume, optionallyMapResourceParameterAsVolume, runInitScriptIfRequired, setParameters, withConnectTimeoutSeconds, withInitScript, withInitScripts, withInitScripts, withStartupTimeoutSeconds, withUrlParamMethods inherited from class org.testcontainers.containers.GenericContainer
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, canBeReused, containerIsCreated, containerIsStarted, containerIsStarting, containerIsStarting, containerIsStopped, containerIsStopping, copyFileFromContainer, createVolumeDirectory, dependsOn, dependsOn, dependsOn, doStart, equals, 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, isHostAccessible, isPrivilegedMode, isShouldBeReused, logger, setBinds, setCommand, setCommand, setCommandParts, setContainerDef, setCopyToFileContainerPathMap, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setHostAccessible, setImage, setLabels, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setShmSize, setStartupAttempts, setStartupCheckStrategy, setTmpFsMapping, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, stop, toString, waitingFor, withAccessToHost, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withCopyToContainer, withCreateContainerCmdModifier, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withImagePullPolicy, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withReuse, withSharedMemorySize, withStartupAttempts, withStartupCheckStrategy, withStartupTimeout, withTmpFs, withVolumesFrom, withWorkingDirectoryMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.testcontainers.containers.Container
addFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBindMethods inherited from interface org.testcontainers.containers.ContainerState
copyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, execInContainer, execInContainer, execInContainerWithUser, execInContainerWithUser, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunningMethods inherited from interface org.testcontainers.containers.traits.LinkableContainer
getContainerNameMethods inherited from interface org.testcontainers.lifecycle.Startable
close
-
Field Details
-
NAME
Deprecated.- See Also:
-
IMAGE
Deprecated.- See Also:
-
DEFAULT_TAG
Deprecated.- See Also:
-
POSTGRESQL_PORT
Deprecated.
-
-
Constructor Details
-
PostgreSQLContainer
Deprecated.usePostgreSQLContainer(DockerImageName)orPostgreSQLContainer(String)instead -
PostgreSQLContainer
Deprecated. -
PostgreSQLContainer
public PostgreSQLContainer(org.testcontainers.utility.DockerImageName dockerImageName) Deprecated.
-
-
Method Details
-
getLivenessCheckPorts
Deprecated.useGenericContainer.getLivenessCheckPortNumbers()instead- Overrides:
getLivenessCheckPortsin classorg.testcontainers.containers.GenericContainer<SELF extends PostgreSQLContainer<SELF>>- Returns:
- the ports on which to check if the container is ready
-
configure
protected void configure()Deprecated.- Overrides:
configurein classorg.testcontainers.containers.GenericContainer<SELF extends PostgreSQLContainer<SELF>>
-
getDriverClassName
Deprecated.- Specified by:
getDriverClassNamein classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>
-
getJdbcUrl
Deprecated.- Specified by:
getJdbcUrlin classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>
-
getDatabaseName
Deprecated.- Overrides:
getDatabaseNamein classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>
-
getUsername
Deprecated.- Specified by:
getUsernamein classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>
-
getPassword
Deprecated.- Specified by:
getPasswordin classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>
-
getTestQueryString
Deprecated.- Specified by:
getTestQueryStringin classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>
-
withDatabaseName
Deprecated.- Overrides:
withDatabaseNamein classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>
-
withUsername
Deprecated.- Overrides:
withUsernamein classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>
-
withPassword
Deprecated.- Overrides:
withPasswordin classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>
-
waitUntilContainerStarted
protected void waitUntilContainerStarted()Deprecated.- Overrides:
waitUntilContainerStartedin classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends PostgreSQLContainer<SELF>>
-
PostgreSQLContainerinstead.