- failed(Throwable, Description) - Method in class org.testcontainers.containers.DockerComposeContainer
-
Deprecated.
- failed(Throwable, Description) - Method in class org.testcontainers.containers.FailureDetectingExternalResource
-
- failed(Throwable, Description) - Method in class org.testcontainers.containers.GenericContainer
-
Deprecated.
- FailureDetectingExternalResource - Class in org.testcontainers.containers
-
TestRule
which is called before and after each test, and also is notified on success/failure.
- FailureDetectingExternalResource() - Constructor for class org.testcontainers.containers.FailureDetectingExternalResource
-
- fetchDockerDaemonInfo() - Method in interface org.testcontainers.containers.Container
-
- fetchDockerDaemonInfo() - Method in class org.testcontainers.containers.GenericContainer
- FilesTrait<SELF extends FilesTrait<SELF> & BuildContextBuilderTrait<SELF>> - Interface in org.testcontainers.images.builder.traits
-
BuildContextBuilder's trait for NIO-based (Files and Paths) manipulations.
- finished(Description) - Method in class org.testcontainers.containers.DockerComposeContainer
-
Deprecated.
- finished(Description) - Method in class org.testcontainers.containers.FailureDetectingExternalResource
-
- finished(Description) - Method in class org.testcontainers.containers.GenericContainer
-
Deprecated.
- FixedHostPortGenericContainer<SELF extends FixedHostPortGenericContainer<SELF>> - Class in org.testcontainers.containers
-
Variant of
GenericContainer
that allows a fixed port on the docker host to be mapped to a container port.
- FixedHostPortGenericContainer(String) - Constructor for class org.testcontainers.containers.FixedHostPortGenericContainer
-
- followOutput(Consumer<OutputFrame>) - Method in interface org.testcontainers.containers.Container
-
Follow container output, sending each frame (usually, line) to a consumer.
- followOutput(Consumer<OutputFrame>, OutputFrame.OutputType...) - Method in interface org.testcontainers.containers.Container
-
Follow container output, sending each frame (usually, line) to a consumer.
- followOutput(DockerClient, String, Consumer<OutputFrame>, OutputFrame.OutputType...) - Method in class org.testcontainers.utility.LogUtils
- followOutput(DockerClient, String, Consumer<OutputFrame>) - Method in class org.testcontainers.utility.LogUtils
-
- forClasspathResource(String) - Static method in class org.testcontainers.utility.MountableFile
-
Obtains a
MountableFile
corresponding to a resource on the classpath (including resources in JAR files)
- forClasspathResource(String, Integer) - Static method in class org.testcontainers.utility.MountableFile
-
Obtains a
MountableFile
corresponding to a resource on the classpath (including resources in JAR files)
- forFrame(Frame) - Static method in class org.testcontainers.containers.output.OutputFrame
-
- forHealthcheck() - Static method in class org.testcontainers.containers.wait.strategy.Wait
-
Convenience method to return a WaitStrategy leveraging Docker's built-in healthcheck.
- forHostPath(String) - Static method in class org.testcontainers.utility.MountableFile
-
Obtains a
MountableFile
corresponding to a file on the docker host filesystem.
- forHostPath(Path) - Static method in class org.testcontainers.utility.MountableFile
-
Obtains a
MountableFile
corresponding to a file on the docker host filesystem.
- forHostPath(String, Integer) - Static method in class org.testcontainers.utility.MountableFile
-
Obtains a
MountableFile
corresponding to a file on the docker host filesystem.
- forHostPath(Path, Integer) - Static method in class org.testcontainers.utility.MountableFile
-
Obtains a
MountableFile
corresponding to a file on the docker host filesystem.
- forHttp(String) - Static method in class org.testcontainers.containers.wait.strategy.Wait
-
Convenience method to return a WaitStrategy for an HTTP endpoint.
- forHttp(String) - Static method in class org.testcontainers.containers.wait.Wait
-
Deprecated.
Convenience method to return a WaitStrategy for an HTTP endpoint.
- forHttps(String) - Static method in class org.testcontainers.containers.wait.strategy.Wait
-
Convenience method to return a WaitStrategy for an HTTPS endpoint.
- forHttps(String) - Static method in class org.testcontainers.containers.wait.Wait
-
Deprecated.
Convenience method to return a WaitStrategy for an HTTPS endpoint.
- forListeningPort() - Static method in class org.testcontainers.containers.wait.strategy.Wait
-
Convenience method to return a WaitStrategy for an exposed or mapped port.
- forListeningPort() - Static method in class org.testcontainers.containers.wait.Wait
-
Deprecated.
Convenience method to return a WaitStrategy for an exposed or mapped port.
- forLogMessage(String, int) - Static method in class org.testcontainers.containers.wait.strategy.Wait
-
Convenience method to return a WaitStrategy for log messages.
- forLogMessage(String, int) - Static method in class org.testcontainers.containers.wait.Wait
-
Deprecated.
Convenience method to return a WaitStrategy for log messages.
- forPath(String) - Method in class org.testcontainers.containers.wait.HttpWaitStrategy
-
Deprecated.
Waits for the given path.
- forPath(String) - Method in class org.testcontainers.containers.wait.strategy.HttpWaitStrategy
-
Waits for the given path.
- forPort(int) - Method in class org.testcontainers.containers.wait.strategy.HttpWaitStrategy
-
Wait for the given port.
- forResponsePredicate(Predicate<String>) - Method in class org.testcontainers.containers.wait.HttpWaitStrategy
-
Deprecated.
Waits for the response to pass the given predicate
- forResponsePredicate(Predicate<String>) - Method in class org.testcontainers.containers.wait.strategy.HttpWaitStrategy
-
Waits for the response to pass the given predicate
- forStatusCode(int) - Method in class org.testcontainers.containers.wait.HttpWaitStrategy
-
Deprecated.
Waits for the given status code.
- forStatusCode(int) - Method in class org.testcontainers.containers.wait.strategy.HttpWaitStrategy
-
Waits for the given status code.
- forStatusCodeMatching(Predicate<Integer>) - Method in class org.testcontainers.containers.wait.strategy.HttpWaitStrategy
-
Waits for the status code to pass the given predicate
- forStreamType(StreamType) - Static method in enum org.testcontainers.containers.output.OutputFrame.OutputType
-
- FrameConsumerResultCallback - Class in org.testcontainers.containers.output
-
This class can be used as a generic callback for docker-java commands that produce Frames.
- FrameConsumerResultCallback() - Constructor for class org.testcontainers.containers.output.FrameConsumerResultCallback
-
- from(String) - Method in interface org.testcontainers.images.builder.dockerfile.traits.FromStatementTrait
-
- fromDockerNotation(String) - Static method in enum org.testcontainers.containers.InternetProtocol
-
- FromStatementTrait<SELF extends FromStatementTrait<SELF> & DockerfileBuilderTrait<SELF>> - Interface in org.testcontainers.images.builder.dockerfile.traits
-
- FutureContainer - Class in org.testcontainers.containers
-
A container that may not have been launched yet.
- FutureContainer() - Constructor for class org.testcontainers.containers.FutureContainer
-
- saveRecordingToFile(File) - Method in class org.testcontainers.containers.VncRecordingContainer
-
- selContext - Variable in enum org.testcontainers.containers.SelinuxContext
-
- self() - Method in interface org.testcontainers.containers.Container
-
- SelinuxContext - Enum in org.testcontainers.containers
-
Possible contexts for use with SELinux
- SESSION_ID - Static variable in class org.testcontainers.DockerClientFactory
-
- setBinds(List<Bind>) - Method in interface org.testcontainers.containers.Container
-
- setCommand(String) - Method in interface org.testcontainers.containers.Container
-
Set the command that should be run in the container.
- setCommand(String...) - Method in interface org.testcontainers.containers.Container
-
Set the command that should be run in the container.
- setCommand(String) - Method in class org.testcontainers.containers.GenericContainer
-
Set the command that should be run in the container.
- setCommand(String...) - Method in class org.testcontainers.containers.GenericContainer
-
Set the command that should be run in the container.
- setCommandParts(String[]) - Method in interface org.testcontainers.containers.Container
-
- setDockerImageName(String) - Method in interface org.testcontainers.containers.Container
-
Resolve Docker image and set it.
- setDockerImageName(String) - Method in class org.testcontainers.containers.GenericContainer
-
Resolve Docker image and set it.
- setEnv(List<String>) - Method in interface org.testcontainers.containers.Container
-
- setEnv(List<String>) - Method in class org.testcontainers.containers.GenericContainer
-
- setExposedPorts(List<Integer>) - Method in interface org.testcontainers.containers.Container
-
- setExtraHosts(List<String>) - Method in interface org.testcontainers.containers.Container
-
- setImage(Future<String>) - Method in interface org.testcontainers.containers.Container
-
- setLinkedContainers(Map<String, LinkableContainer>) - Method in interface org.testcontainers.containers.Container
-
- setPortBindings(List<String>) - Method in interface org.testcontainers.containers.Container
-
- setWaitStrategy(WaitStrategy) - Method in interface org.testcontainers.containers.Container
-
- setWaitStrategy(WaitStrategy) - Method in class org.testcontainers.containers.GenericContainer
-
- SHARED - Static variable in interface org.testcontainers.containers.Network
-
- SingleArgumentStatement - Class in org.testcontainers.images.builder.dockerfile.statement
-
- SingleArgumentStatement(String, String) - Constructor for class org.testcontainers.images.builder.dockerfile.statement.SingleArgumentStatement
-
- Slf4jLogConsumer - Class in org.testcontainers.containers.output
-
A consumer for container output that logs output to an SLF4J logger.
- Slf4jLogConsumer(Logger) - Constructor for class org.testcontainers.containers.output.Slf4jLogConsumer
-
- SocatContainer - Class in org.testcontainers.containers
-
A socat container is used as a TCP proxy, enabling any TCP port of another container to be exposed
publicly, even if that container does not make the port public itself.
- SocatContainer() - Constructor for class org.testcontainers.containers.SocatContainer
-
- start() - Method in class org.testcontainers.containers.DockerComposeContainer
-
- start() - Method in class org.testcontainers.containers.GenericContainer
-
Starts the container using docker, pulling an image if necessary.
- start() - Method in interface org.testcontainers.lifecycle.Startable
-
- start(String, DockerClient) - Static method in class org.testcontainers.utility.ResourceReaper
-
- start(String, DockerClient, boolean) - Static method in class org.testcontainers.utility.ResourceReaper
-
- Startable - Interface in org.testcontainers.lifecycle
-
- startContainerCmd(String) - Method in class org.testcontainers.dockerclient.AuditLoggingDockerClient
-
- starting(Description) - Method in class org.testcontainers.containers.DockerComposeContainer
-
Deprecated.
- starting(Description) - Method in class org.testcontainers.containers.FailureDetectingExternalResource
-
- starting(Description) - Method in class org.testcontainers.containers.GenericContainer
-
Deprecated.
- StartupCheckStrategy - Class in org.testcontainers.containers.startupcheck
-
Approach to determine whether a container has 'started up' correctly.
- StartupCheckStrategy() - Constructor for class org.testcontainers.containers.startupcheck.StartupCheckStrategy
-
- StartupCheckStrategy.StartupStatus - Enum in org.testcontainers.containers.startupcheck
-
- startupTimeout - Variable in class org.testcontainers.containers.GenericContainer.AbstractWaitStrategy
-
Deprecated.
- startupTimeout - Variable in class org.testcontainers.containers.wait.strategy.AbstractWaitStrategy
-
- STATE_HEALTHY - Static variable in interface org.testcontainers.containers.ContainerState
-
- Statement - Class in org.testcontainers.images.builder.dockerfile.statement
-
- Statement() - Constructor for class org.testcontainers.images.builder.dockerfile.statement.Statement
-
- stop() - Method in class org.testcontainers.containers.DockerComposeContainer
-
- stop() - Method in class org.testcontainers.containers.GenericContainer
-
Stops the container.
- stop() - Method in interface org.testcontainers.lifecycle.Startable
-
- stopAndRemoveContainer(String) - Method in class org.testcontainers.utility.ResourceReaper
-
Stop a potentially running container and remove it, including associated volumes.
- stopAndRemoveContainer(String, String) - Method in class org.testcontainers.utility.ResourceReaper
-
Stop a potentially running container and remove it, including associated volumes.
- stopAndRetainRecording(File) - Method in class org.testcontainers.containers.VncRecordingSidekickContainer
-
Deprecated.
Stop the container and move the recording file to a suitable destination
- stopContainerCmd(String) - Method in class org.testcontainers.dockerclient.AuditLoggingDockerClient
-
- streamRecording() - Method in class org.testcontainers.containers.VncRecordingContainer
-
- StringsTrait<SELF extends StringsTrait<SELF> & BuildContextBuilderTrait<SELF>> - Interface in org.testcontainers.images.builder.traits
-
BuildContextBuilder's trait for String-based manipulations.
- succeeded(Description) - Method in class org.testcontainers.containers.DockerComposeContainer
-
Deprecated.
- succeeded(Description) - Method in class org.testcontainers.containers.FailureDetectingExternalResource
-
- succeeded(Description) - Method in class org.testcontainers.containers.GenericContainer
-
Deprecated.
- valueOf(String) - Static method in enum org.testcontainers.containers.BindMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.testcontainers.containers.InternetProtocol
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.testcontainers.containers.output.OutputFrame.OutputType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.testcontainers.containers.SelinuxContext
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.testcontainers.containers.startupcheck.StartupCheckStrategy.StartupStatus
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.testcontainers.containers.BindMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.testcontainers.containers.InternetProtocol
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.testcontainers.containers.output.OutputFrame.OutputType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.testcontainers.containers.SelinuxContext
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.testcontainers.containers.startupcheck.StartupCheckStrategy.StartupStatus
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- VncRecordingContainer - Class in org.testcontainers.containers
-
'Sidekick container' with the sole purpose of recording the VNC screen output from another container.
- VncRecordingContainer(GenericContainer<?>) - Constructor for class org.testcontainers.containers.VncRecordingContainer
-
- VncRecordingContainer(Network, String) - Constructor for class org.testcontainers.containers.VncRecordingContainer
-
Create a sidekick container and attach it to another container.
- VncRecordingSidekickContainer<SELF extends VncRecordingSidekickContainer<SELF,T>,T extends VncService & LinkableContainer> - Class in org.testcontainers.containers
-
- VncRecordingSidekickContainer(T) - Constructor for class org.testcontainers.containers.VncRecordingSidekickContainer
-
Deprecated.
Create a sidekick container and link it to another container.
- VncService - Interface in org.testcontainers.containers.traits
-
Deprecated.
- volume(String...) - Method in interface org.testcontainers.images.builder.dockerfile.traits.VolumeStatementTrait
-
- VolumeStatementTrait<SELF extends VolumeStatementTrait<SELF> & DockerfileBuilderTrait<SELF>> - Interface in org.testcontainers.images.builder.dockerfile.traits
-
- Wait - Class in org.testcontainers.containers.wait.strategy
-
Convenience class with logic for building common
WaitStrategy
instances.
- Wait() - Constructor for class org.testcontainers.containers.wait.strategy.Wait
-
- Wait - Class in org.testcontainers.containers.wait
-
- Wait() - Constructor for class org.testcontainers.containers.wait.Wait
-
Deprecated.
- WaitAllStrategy - Class in org.testcontainers.containers.wait.strategy
-
- WaitAllStrategy() - Constructor for class org.testcontainers.containers.wait.strategy.WaitAllStrategy
-
- WaitAllStrategy - Class in org.testcontainers.containers.wait
-
- WaitAllStrategy() - Constructor for class org.testcontainers.containers.wait.WaitAllStrategy
-
Deprecated.
- WaitingConsumer - Class in org.testcontainers.containers.output
-
A consumer for container output that buffers lines in a BlockingDeque
and enables tests
to wait for a matching condition.
- WaitingConsumer() - Constructor for class org.testcontainers.containers.output.WaitingConsumer
-
- waitingFor(WaitStrategy) - Method in interface org.testcontainers.containers.Container
-
Specify the
WaitStrategy
to use to determine if the container is ready.
- waitingFor(String, WaitStrategy) - Method in class org.testcontainers.containers.DockerComposeContainer
-
Specify the
WaitStrategy
to use to determine if the container is ready.
- waitingFor(WaitStrategy) - Method in class org.testcontainers.containers.GenericContainer
-
Specify the
WaitStrategy
to use to determine if the container is ready.
- waitStrategy - Variable in class org.testcontainers.containers.GenericContainer
-
The approach to determine if the container is ready.
- WaitStrategy - Interface in org.testcontainers.containers.wait.strategy
-
- WaitStrategy - Interface in org.testcontainers.containers.wait
-
- waitStrategyTarget - Variable in class org.testcontainers.containers.wait.strategy.AbstractWaitStrategy
-
- WaitStrategyTarget - Interface in org.testcontainers.containers.wait.strategy
-
- waitUntil(Predicate<OutputFrame>) - Method in class org.testcontainers.containers.output.WaitingConsumer
-
Wait until any frame (usually, line) of output matches the provided predicate.
- waitUntil(Predicate<OutputFrame>, int, TimeUnit) - Method in class org.testcontainers.containers.output.WaitingConsumer
-
Wait until any frame (usually, line) of output matches the provided predicate.
- waitUntil(Predicate<OutputFrame>, long, TimeUnit, int) - Method in class org.testcontainers.containers.output.WaitingConsumer
-
Wait until any frame (usually, line) of output matches the provided predicate.
- waitUntilContainerStarted() - Method in class org.testcontainers.containers.GenericContainer
-
Wait until the container has started.
- waitUntilEnd() - Method in class org.testcontainers.containers.output.WaitingConsumer
-
Wait until Docker closes the stream of output.
- waitUntilEnd(long, TimeUnit) - Method in class org.testcontainers.containers.output.WaitingConsumer
-
Wait until Docker closes the stream of output.
- waitUntilReady(GenericContainer) - Method in class org.testcontainers.containers.GenericContainer.AbstractWaitStrategy
-
Deprecated.
Wait until the container has started.
- waitUntilReady() - Method in class org.testcontainers.containers.GenericContainer.AbstractWaitStrategy
-
Deprecated.
- waitUntilReady() - Method in class org.testcontainers.containers.wait.HostPortWaitStrategy
-
Deprecated.
- waitUntilReady() - Method in class org.testcontainers.containers.wait.HttpWaitStrategy
-
Deprecated.
- waitUntilReady() - Method in class org.testcontainers.containers.wait.LogMessageWaitStrategy
-
Deprecated.
- waitUntilReady(WaitStrategyTarget) - Method in class org.testcontainers.containers.wait.strategy.AbstractWaitStrategy
-
Wait until the target has started.
- waitUntilReady() - Method in class org.testcontainers.containers.wait.strategy.AbstractWaitStrategy
-
- waitUntilReady() - Method in class org.testcontainers.containers.wait.strategy.DockerHealthcheckWaitStrategy
-
- waitUntilReady() - Method in class org.testcontainers.containers.wait.strategy.HostPortWaitStrategy
-
- waitUntilReady() - Method in class org.testcontainers.containers.wait.strategy.HttpWaitStrategy
-
- waitUntilReady() - Method in class org.testcontainers.containers.wait.strategy.LogMessageWaitStrategy
-
- waitUntilReady(WaitStrategyTarget) - Method in class org.testcontainers.containers.wait.strategy.WaitAllStrategy
-
- waitUntilReady(WaitStrategyTarget) - Method in interface org.testcontainers.containers.wait.strategy.WaitStrategy
-
- waitUntilReady(GenericContainer) - Method in class org.testcontainers.containers.wait.WaitAllStrategy
-
Deprecated.
- waitUntilReady(GenericContainer) - Method in interface org.testcontainers.containers.wait.WaitStrategy
-
Deprecated.
Wait until the container has started.
- waitUntilReady(WaitStrategyTarget) - Method in interface org.testcontainers.containers.wait.WaitStrategy
-
Deprecated.
- waitUntilStartupSuccessful(DockerClient, String) - Method in class org.testcontainers.containers.startupcheck.IndefiniteWaitOneShotStartupCheckStrategy
-
- waitUntilStartupSuccessful(DockerClient, String) - Method in class org.testcontainers.containers.startupcheck.StartupCheckStrategy
-
- WindowsClientProviderStrategy - Class in org.testcontainers.dockerclient
-
- WindowsClientProviderStrategy() - Constructor for class org.testcontainers.dockerclient.WindowsClientProviderStrategy
-
- withBasicCredentials(String, String) - Method in class org.testcontainers.containers.wait.HttpWaitStrategy
-
Deprecated.
Authenticate with HTTP Basic Authorization credentials.
- withBasicCredentials(String, String) - Method in class org.testcontainers.containers.wait.strategy.HttpWaitStrategy
-
Authenticate with HTTP Basic Authorization credentials.
- withClasspathResourceMapping(String, String, BindMode) - Method in interface org.testcontainers.containers.Container
-
Map a resource (file or directory) on the classpath to a path inside the container.
- withClasspathResourceMapping(String, String, BindMode, SelinuxContext) - Method in interface org.testcontainers.containers.Container
-
Map a resource (file or directory) on the classpath to a path inside the container.
- withClasspathResourceMapping(String, String, BindMode) - Method in class org.testcontainers.containers.GenericContainer
-
Map a resource (file or directory) on the classpath to a path inside the container.
- withClasspathResourceMapping(String, String, BindMode, SelinuxContext) - Method in class org.testcontainers.containers.GenericContainer
-
Map a resource (file or directory) on the classpath to a path inside the container.
- withCommand(String) - Method in interface org.testcontainers.containers.Container
-
Set the command that should be run in the container
- withCommand(String...) - Method in interface org.testcontainers.containers.Container
-
Set the command that should be run in the container
- withCommand(String) - Method in class org.testcontainers.containers.GenericContainer
-
Set the command that should be run in the container
- withCommand(String...) - Method in class org.testcontainers.containers.GenericContainer
-
Set the command that should be run in the container
- withConnectTimeout(Integer) - Method in class org.testcontainers.dockerclient.transport.TestcontainersDockerCmdExecFactory
-
Configure connection timeout in milliseconds
- withCopyFileToContainer(MountableFile, String) - Method in interface org.testcontainers.containers.Container
-
Set the file to be copied before starting a created container
- withCopyFileToContainer(MountableFile, String) - Method in class org.testcontainers.containers.GenericContainer
-
Set the file to be copied before starting a created container
- withCreateContainerCmdModifier(Consumer<CreateContainerCmd>) - Method in class org.testcontainers.containers.GenericContainer
-
- withDockerfileFromBuilder(Consumer<DockerfileBuilder>) - Method in interface org.testcontainers.images.builder.traits.DockerfileTrait
-
- withEnv(String, String) - Method in interface org.testcontainers.containers.Container
-
Add an environment variable to be passed to the container.
- withEnv(String, Function<Optional<String>, String>) - Method in interface org.testcontainers.containers.Container
-
Add an environment variable to be passed to the container.
- withEnv(Map<String, String>) - Method in interface org.testcontainers.containers.Container
-
Add environment variables to be passed to the container.
- withEnv(String, String) - Method in class org.testcontainers.containers.DockerComposeContainer
-
- withEnv(Map<String, String>) - Method in class org.testcontainers.containers.DockerComposeContainer
-
- withEnv(String, String) - Method in class org.testcontainers.containers.GenericContainer
-
Add an environment variable to be passed to the container.
- withEnv(Map<String, String>) - Method in class org.testcontainers.containers.GenericContainer
-
Add environment variables to be passed to the container.
- withExposedPorts(Integer...) - Method in interface org.testcontainers.containers.Container
-
Set the ports that this container listens on
- withExposedPorts(Integer...) - Method in class org.testcontainers.containers.GenericContainer
-
Set the ports that this container listens on
- withExposedService(String, int) - Method in class org.testcontainers.containers.DockerComposeContainer
-
- withExposedService(String, int, int) - Method in class org.testcontainers.containers.DockerComposeContainer
-
- withExposedService(String, int, int, WaitStrategy) - Method in class org.testcontainers.containers.DockerComposeContainer
-
- withExposedService(String, int, WaitStrategy) - Method in class org.testcontainers.containers.DockerComposeContainer
-
- withExtraHost(String, String) - Method in interface org.testcontainers.containers.Container
-
Add an extra host entry to be passed to the container
- withExtraHost(String, String) - Method in class org.testcontainers.containers.GenericContainer
-
Add an extra host entry to be passed to the container
- withFileFromClasspath(String, String) - Method in interface org.testcontainers.images.builder.traits.ClasspathTrait
-
- withFileFromFile(String, File) - Method in interface org.testcontainers.images.builder.traits.FilesTrait
-
Adds file to tarball copied into container.
- withFileFromFile(String, File, Integer) - Method in interface org.testcontainers.images.builder.traits.FilesTrait
-
Adds file with given mode to tarball copied into container.
- withFileFromPath(String, Path) - Method in interface org.testcontainers.images.builder.traits.FilesTrait
-
Adds file to tarball copied into container.
- withFileFromPath(String, Path, Integer) - Method in interface org.testcontainers.images.builder.traits.FilesTrait
-
Adds file with given mode to tarball copied into container.
- withFileFromString(String, String) - Method in interface org.testcontainers.images.builder.traits.StringsTrait
-
- withFileFromTransferable(String, Transferable) - Method in class org.testcontainers.images.builder.ImageFromDockerfile
-
- withFileFromTransferable(String, Transferable) - Method in interface org.testcontainers.images.builder.traits.BuildContextBuilderTrait
-
- withFileSystemBind(String, String) - Method in interface org.testcontainers.containers.Container
-
Adds a file system binding.
- withFileSystemBind(String, String, BindMode) - Method in interface org.testcontainers.containers.Container
-
Adds a file system binding.
- withFileSystemBind(String, String, BindMode) - Method in class org.testcontainers.containers.GenericContainer
-
Adds a file system binding.
- withFixedExposedPort(int, int) - Method in class org.testcontainers.containers.FixedHostPortGenericContainer
-
Bind a fixed TCP port on the docker host to a container port
- withFixedExposedPort(int, int, InternetProtocol) - Method in class org.testcontainers.containers.FixedHostPortGenericContainer
-
Bind a fixed port on the docker host to a container port
- withFrameRate(int) - Method in class org.testcontainers.containers.VncRecordingContainer
-
- withLabel(String, String) - Method in interface org.testcontainers.containers.Container
-
Add a label to the container.
- withLabel(String, String) - Method in class org.testcontainers.containers.GenericContainer
-
Add a label to the container.
- withLabels(Map<String, String>) - Method in interface org.testcontainers.containers.Container
-
Add labels to the container.
- withLabels(Map<String, String>) - Method in class org.testcontainers.containers.GenericContainer
-
Add labels to the container.
- withLocalCompose(boolean) - Method in class org.testcontainers.containers.DockerComposeContainer
-
Use a local Docker Compose binary instead of a container.
- withLogConsumer(Consumer<OutputFrame>) - Method in interface org.testcontainers.containers.Container
-
Attach an output consumer at container startup, enabling stdout and stderr to be followed, waited on, etc.
- withLogConsumer(String, Consumer<OutputFrame>) - Method in class org.testcontainers.containers.DockerComposeContainer
-
Attach an output consumer at container startup, enabling stdout and stderr to be followed, waited on, etc.
- withLogConsumer(Consumer<OutputFrame>) - Method in class org.testcontainers.containers.GenericContainer
-
Attach an output consumer at container startup, enabling stdout and stderr to be followed, waited on, etc.
- withMinimumRunningDuration(Duration) - Method in interface org.testcontainers.containers.Container
-
Only consider a container to have successfully started if it has been running for this duration.
- withMinimumRunningDuration(Duration) - Method in class org.testcontainers.containers.GenericContainer
-
Only consider a container to have successfully started if it has been running for this duration.
- withNetwork(Network) - Method in interface org.testcontainers.containers.Container
-
Set the network for this container, similar to the --network <name>
option on the docker CLI.
- withNetwork(Network) - Method in class org.testcontainers.containers.GenericContainer
-
- withNetworkAliases(String...) - Method in interface org.testcontainers.containers.Container
-
Set the network aliases for this container, similar to the --network-alias <my-service>
option on the docker CLI.
- withNetworkAliases(String...) - Method in class org.testcontainers.containers.GenericContainer
-
- withNetworkMode(String) - Method in interface org.testcontainers.containers.Container
-
Set the network mode for this container, similar to the --net <name>
option on the docker CLI.
- withNetworkMode(String) - Method in class org.testcontainers.containers.GenericContainer
-
- withPrefix(String) - Method in class org.testcontainers.containers.output.Slf4jLogConsumer
-
- withPrivilegedMode(boolean) - Method in interface org.testcontainers.containers.Container
-
Set the privilegedMode mode for the container
- withPrivilegedMode(boolean) - Method in class org.testcontainers.containers.GenericContainer
-
- withPull(boolean) - Method in class org.testcontainers.containers.DockerComposeContainer
-
Whether to pull images first.
- withReadTimeout(Integer) - Method in class org.testcontainers.dockerclient.transport.TestcontainersDockerCmdExecFactory
-
Configure read timeout in milliseconds
- withRegEx(String) - Method in class org.testcontainers.containers.wait.LogMessageWaitStrategy
-
Deprecated.
- withRegEx(String) - Method in class org.testcontainers.containers.wait.strategy.LogMessageWaitStrategy
-
- withRemoveAnsiCodes(boolean) - Method in class org.testcontainers.containers.output.BaseConsumer
-
- withScaledService(String, int) - Method in class org.testcontainers.containers.DockerComposeContainer
-
- withStartupAttempts(int) - Method in class org.testcontainers.containers.GenericContainer
-
Allow container startup to be attempted more than once if an error occurs.
- withStartupCheckStrategy(StartupCheckStrategy) - Method in interface org.testcontainers.containers.Container
-
Set the startup check strategy used for checking whether the container has started.
- withStartupCheckStrategy(StartupCheckStrategy) - Method in class org.testcontainers.containers.GenericContainer
-
Set the startup check strategy used for checking whether the container has started.
- withStartupTimeout(Duration) - Method in interface org.testcontainers.containers.Container
-
Set the duration of waiting time until container treated as started.
- withStartupTimeout(Duration) - Method in class org.testcontainers.containers.GenericContainer.AbstractWaitStrategy
-
Deprecated.
Set the duration of waiting time until container treated as started.
- withStartupTimeout(Duration) - Method in class org.testcontainers.containers.GenericContainer
-
Set the duration of waiting time until container treated as started.
- withStartupTimeout(Duration) - Method in class org.testcontainers.containers.wait.HostPortWaitStrategy
-
Deprecated.
- withStartupTimeout(Duration) - Method in class org.testcontainers.containers.wait.strategy.AbstractWaitStrategy
-
Set the duration of waiting time until container treated as started.
- withStartupTimeout(Duration) - Method in class org.testcontainers.containers.wait.strategy.WaitAllStrategy
-
- withStartupTimeout(Duration) - Method in interface org.testcontainers.containers.wait.strategy.WaitStrategy
-
- withStartupTimeout(Duration) - Method in class org.testcontainers.containers.wait.WaitAllStrategy
-
Deprecated.
- withStartupTimeout(Duration) - Method in interface org.testcontainers.containers.wait.WaitStrategy
-
Deprecated.
- withStatement(Statement) - Method in interface org.testcontainers.images.builder.dockerfile.traits.DockerfileBuilderTrait
-
- withStrategy(WaitStrategy) - Method in class org.testcontainers.containers.wait.strategy.WaitAllStrategy
-
- withStrategy(WaitStrategy) - Method in class org.testcontainers.containers.wait.WaitAllStrategy
-
Deprecated.
- withTailChildContainers(boolean) - Method in class org.testcontainers.containers.DockerComposeContainer
-
Whether to tail child container logs.
- withTarget(int, String) - Method in class org.testcontainers.containers.SocatContainer
-
- withTarget(int, String, int) - Method in class org.testcontainers.containers.SocatContainer
-
- withTimes(int) - Method in class org.testcontainers.containers.wait.LogMessageWaitStrategy
-
Deprecated.
- withTimes(int) - Method in class org.testcontainers.containers.wait.strategy.LogMessageWaitStrategy
-
- withVncPassword(String) - Method in class org.testcontainers.containers.VncRecordingContainer
-
- withVncPort(int) - Method in class org.testcontainers.containers.VncRecordingContainer
-
- withVolumesFrom(Container, BindMode) - Method in interface org.testcontainers.containers.Container
-
Adds container volumes.
- withVolumesFrom(Container, BindMode) - Method in class org.testcontainers.containers.GenericContainer
-
Adds container volumes.
- withWorkingDirectory(String) - Method in interface org.testcontainers.containers.Container
-
Set the working directory that the container should use on startup.
- withWorkingDirectory(String) - Method in class org.testcontainers.containers.GenericContainer
-
Set the working directory that the container should use on startup.
- workDir(String) - Method in interface org.testcontainers.images.builder.dockerfile.traits.WorkdirStatementTrait
-
- WorkdirStatementTrait<SELF extends WorkdirStatementTrait<SELF> & DockerfileBuilderTrait<SELF>> - Interface in org.testcontainers.images.builder.dockerfile.traits
-