Package org.testcontainers.containers
Class MySQLContainer<SELF extends MySQLContainer<SELF>>
java.lang.Object
org.testcontainers.containers.GenericContainer<SELF>
org.testcontainers.containers.JdbcDatabaseContainer<SELF>
org.testcontainers.containers.MySQLContainer<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 MySQLContainer<SELF extends MySQLContainer<SELF>>
extends org.testcontainers.containers.JdbcDatabaseContainer<SELF>
Deprecated.
Testcontainers implementation for MySQL.
Supported image: mysql
Exposed ports: 3306
-
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 IntegerDeprecated.static final StringDeprecated.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.useMySQLContainer(DockerImageName)insteadMySQLContainer(String dockerImageName) Deprecated.MySQLContainer(org.testcontainers.utility.DockerImageName dockerImageName) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeprecated.protected StringconstructUrlForConnection(String queryString) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.useGenericContainer.getLivenessCheckPortNumbers()insteadDeprecated.Deprecated.Deprecated.Deprecated.withDatabaseName(String databaseName) Deprecated.withPassword(String password) Deprecated.withUsername(String username) Deprecated.Methods inherited from class org.testcontainers.containers.JdbcDatabaseContainer
addParameter, constructUrlParameters, constructUrlParameters, containerIsStarted, createConnection, createConnection, getConnectTimeoutSeconds, getDatabaseDelegate, getJdbcDriverInstance, getStartupTimeoutSeconds, optionallyMapResourceParameterAsVolume, optionallyMapResourceParameterAsVolume, runInitScriptIfRequired, setParameters, waitUntilContainerStarted, 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:
-
DEFAULT_TAG
Deprecated.- See Also:
-
IMAGE
Deprecated. -
MYSQL_PORT
Deprecated.
-
-
Constructor Details
-
MySQLContainer
Deprecated.useMySQLContainer(DockerImageName)instead -
MySQLContainer
Deprecated. -
MySQLContainer
public MySQLContainer(org.testcontainers.utility.DockerImageName dockerImageName) Deprecated.
-
-
Method Details
-
getLivenessCheckPorts
Deprecated.useGenericContainer.getLivenessCheckPortNumbers()instead- Overrides:
getLivenessCheckPortsin classorg.testcontainers.containers.GenericContainer<SELF extends MySQLContainer<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 MySQLContainer<SELF>>
-
getDriverClassName
Deprecated.- Specified by:
getDriverClassNamein classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
-
getJdbcUrl
Deprecated.- Specified by:
getJdbcUrlin classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
-
constructUrlForConnection
Deprecated.- Overrides:
constructUrlForConnectionin classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
-
getDatabaseName
Deprecated.- Overrides:
getDatabaseNamein classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
-
getUsername
Deprecated.- Specified by:
getUsernamein classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
-
getPassword
Deprecated.- Specified by:
getPasswordin classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
-
getTestQueryString
Deprecated.- Specified by:
getTestQueryStringin classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
-
withConfigurationOverride
Deprecated. -
withDatabaseName
Deprecated.- Overrides:
withDatabaseNamein classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
-
withUsername
Deprecated.- Overrides:
withUsernamein classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
-
withPassword
Deprecated.- Overrides:
withPasswordin classorg.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
-
MySQLContainerinstead.