public class MySQLContainer<SELF extends MySQLContainer<SELF>>
extends org.testcontainers.containers.JdbcDatabaseContainer<SELF>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_TAG
Deprecated.
|
static java.lang.String |
IMAGE
Deprecated.
|
static java.lang.Integer |
MYSQL_PORT |
static java.lang.String |
NAME |
parameters, urlParameters
Constructor and Description |
---|
MySQLContainer()
Deprecated.
use
MySQLContainer(DockerImageName) instead |
MySQLContainer(org.testcontainers.utility.DockerImageName dockerImageName) |
MySQLContainer(java.lang.String dockerImageName) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
protected java.lang.String |
constructUrlForConnection(java.lang.String queryString) |
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() |
SELF |
withConfigurationOverride(java.lang.String s) |
SELF |
withDatabaseName(java.lang.String databaseName) |
SELF |
withPassword(java.lang.String password) |
SELF |
withUsername(java.lang.String username) |
addParameter, constructUrlParameters, constructUrlParameters, containerIsStarted, createConnection, getConnectTimeoutSeconds, getDatabaseDelegate, getJdbcDriverInstance, getStartupTimeoutSeconds, optionallyMapResourceParameterAsVolume, runInitScriptIfRequired, setParameters, waitUntilContainerStarted, 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, isHostAccessible, isPrivilegedMode, isShouldBeReused, logger, setBinds, setCommand, setCommand, setCommandParts, setCopyToFileContainerPathMap, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setHostAccessible, setImage, setLabels, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setShmSize, setStartupAttempts, setStartupCheckStrategy, setTmpFsMapping, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, starting, stop, succeeded, toString, waitingFor, withAccessToHost, 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
@Deprecated public static final java.lang.String DEFAULT_TAG
@Deprecated public static final java.lang.String IMAGE
public static final java.lang.Integer MYSQL_PORT
@Deprecated public MySQLContainer()
MySQLContainer(DockerImageName)
insteadpublic MySQLContainer(java.lang.String dockerImageName)
public MySQLContainer(org.testcontainers.utility.DockerImageName dockerImageName)
@NotNull protected @NotNull java.util.Set<java.lang.Integer> getLivenessCheckPorts()
getLivenessCheckPorts
in class org.testcontainers.containers.GenericContainer<SELF extends MySQLContainer<SELF>>
protected void configure()
configure
in class org.testcontainers.containers.GenericContainer<SELF extends MySQLContainer<SELF>>
public java.lang.String getDriverClassName()
getDriverClassName
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
public java.lang.String getJdbcUrl()
getJdbcUrl
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
protected java.lang.String constructUrlForConnection(java.lang.String queryString)
constructUrlForConnection
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
public java.lang.String getDatabaseName()
getDatabaseName
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
public java.lang.String getUsername()
getUsername
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
public java.lang.String getPassword()
getPassword
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
public java.lang.String getTestQueryString()
getTestQueryString
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
public SELF withConfigurationOverride(java.lang.String s)
public SELF withDatabaseName(java.lang.String databaseName)
withDatabaseName
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
public SELF withUsername(java.lang.String username)
withUsername
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>
public SELF withPassword(java.lang.String password)
withPassword
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>