public class MSSQLServerContainer<SELF extends MSSQLServerContainer<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 |
static java.lang.Integer |
MS_SQL_SERVER_PORT |
static java.lang.String |
NAME |
parameters, urlParameters
Constructor and Description |
---|
MSSQLServerContainer()
Deprecated.
use
MSSQLServerContainer(DockerImageName) instead |
MSSQLServerContainer(org.testcontainers.utility.DockerImageName dockerImageName) |
MSSQLServerContainer(java.lang.String dockerImageName) |
Modifier and Type | Method and Description |
---|---|
SELF |
acceptLicense()
Accepts the license for the SQLServer container by setting the ACCEPT_EULA=Y
variable as described at http://hub.docker.com/_/microsoft-mssql-server
|
protected void |
configure() |
java.lang.String |
getDriverClassName() |
java.lang.String |
getJdbcUrl() |
protected java.lang.Integer |
getLivenessCheckPort() |
java.lang.String |
getPassword() |
java.lang.String |
getTestQueryString() |
java.lang.String |
getUsername() |
SELF |
withPassword(java.lang.String password) |
addParameter, constructUrlForConnection, constructUrlParameters, constructUrlParameters, containerIsStarted, createConnection, getConnectTimeoutSeconds, getDatabaseDelegate, getDatabaseName, getJdbcDriverInstance, getStartupTimeoutSeconds, optionallyMapResourceParameterAsVolume, runInitScriptIfRequired, setParameters, waitUntilContainerStarted, withConnectTimeoutSeconds, withDatabaseName, withInitScript, withStartupTimeoutSeconds, withUrlParam, withUsername
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, getLivenessCheckPortNumbers, getLivenessCheckPorts, getLogConsumers, getNetwork, getNetworkAliases, getNetworkMode, getPortBindings, getShmSize, getStartupAttempts, getStartupCheckStrategy, getTestHostIpAddress, getTmpFsMapping, getVolumesFroms, getWaitStrategy, getWorkingDirectory, hashCode, isPrivilegedMode, isShouldBeReused, logger, setBinds, setCommand, setCommand, setCommandParts, setCopyToFileContainerPathMap, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setImage, setLabels, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setShmSize, setStartupAttempts, setStartupCheckStrategy, setTmpFsMapping, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, starting, stop, succeeded, toString, waitingFor, 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
@Deprecated public static final java.lang.String DEFAULT_TAG
public static final java.lang.String NAME
public static final java.lang.String IMAGE
public static final java.lang.Integer MS_SQL_SERVER_PORT
@Deprecated public MSSQLServerContainer()
MSSQLServerContainer(DockerImageName)
insteadpublic MSSQLServerContainer(java.lang.String dockerImageName)
public MSSQLServerContainer(org.testcontainers.utility.DockerImageName dockerImageName)
protected java.lang.Integer getLivenessCheckPort()
getLivenessCheckPort
in class org.testcontainers.containers.GenericContainer<SELF extends MSSQLServerContainer<SELF>>
protected void configure()
configure
in class org.testcontainers.containers.GenericContainer<SELF extends MSSQLServerContainer<SELF>>
public SELF acceptLicense()
public java.lang.String getDriverClassName()
getDriverClassName
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MSSQLServerContainer<SELF>>
public java.lang.String getJdbcUrl()
getJdbcUrl
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MSSQLServerContainer<SELF>>
public java.lang.String getUsername()
getUsername
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MSSQLServerContainer<SELF>>
public java.lang.String getPassword()
getPassword
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MSSQLServerContainer<SELF>>
public java.lang.String getTestQueryString()
getTestQueryString
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MSSQLServerContainer<SELF>>
public SELF withPassword(java.lang.String password)
withPassword
in class org.testcontainers.containers.JdbcDatabaseContainer<SELF extends MSSQLServerContainer<SELF>>