public class MySQLContainer<SELF extends MySQLContainer<SELF>> extends JdbcDatabaseContainer<SELF>
GenericContainer.AbstractWaitStrategyContainer.ExecResult| Modifier and Type | Field and Description |
|---|---|
static String |
IMAGE |
static Integer |
MYSQL_PORT |
static String |
NAME |
parametersCONTAINER_RUNNING_TIMEOUT_SEC, containerId, containerName, dockerClient, dockerDaemonInfo, waitStrategy| Constructor and Description |
|---|
MySQLContainer() |
MySQLContainer(String dockerImageName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure() |
String |
getDatabaseName() |
String |
getDriverClassName() |
String |
getJdbcUrl() |
protected Set<Integer> |
getLivenessCheckPorts() |
String |
getPassword() |
String |
getTestQueryString() |
String |
getUsername() |
SELF |
withConfigurationOverride(String s) |
SELF |
withDatabaseName(String databaseName) |
SELF |
withPassword(String password) |
SELF |
withUsername(String username) |
addParameter, createConnection, getJdbcDriverInstance, optionallyMapResourceParameterAsVolume, setParameters, waitUntilContainerStartedaddEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addLink, canEqual, close, containerIsStarted, containerIsStarting, copyFileFromContainer, copyFileToContainer, createVolumeDirectory, equals, execInContainer, execInContainer, fetchDockerDaemonInfo, finished, followOutput, followOutput, getBinds, getCommandParts, getContainerId, getContainerInfo, getContainerIpAddress, getContainerName, getCreateContainerCmdModifiers, getDockerClient, getDockerDaemonInfo, getDockerImageName, getEnv, getEnvMap, getExposedPorts, getExtraHosts, getImage, getIpAddress, getLinkedContainers, getLivenessCheckPort, getLogConsumers, getMappedPort, getNetwork, getNetworkAliases, getNetworkMode, getPortBindings, getStartupAttempts, getStartupCheckStrategy, getTestHostIpAddress, getVolumesFroms, getWaitStrategy, getWorkingDirectory, hashCode, isPrivilegedMode, isRunning, 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, waitgetContainerNameaddFileSystemBind, getFirstMappedPort, self, withEnv, withFileSystemBindpublic static final String NAME
public static final String IMAGE
public static final Integer MYSQL_PORT
public MySQLContainer()
public MySQLContainer(String dockerImageName)
@NotNull protected Set<Integer> getLivenessCheckPorts()
getLivenessCheckPorts in class GenericContainer<SELF extends MySQLContainer<SELF>>protected void configure()
configure in class GenericContainer<SELF extends MySQLContainer<SELF>>public String getDriverClassName()
getDriverClassName in class JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>public String getJdbcUrl()
getJdbcUrl in class JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>public String getDatabaseName()
getDatabaseName in class JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>public String getUsername()
getUsername in class JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>public String getPassword()
getPassword in class JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>public String getTestQueryString()
getTestQueryString in class JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>public SELF withDatabaseName(String databaseName)
withDatabaseName in class JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>public SELF withUsername(String username)
withUsername in class JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>public SELF withPassword(String password)
withPassword in class JdbcDatabaseContainer<SELF extends MySQLContainer<SELF>>Copyright © 2018. All rights reserved.