- failed(Throwable, Description) - Method in class org.testcontainers.containers.FailureDetectingExternalResource
-
- 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
-
- finished(Description) - Method in class org.testcontainers.containers.FailureDetectingExternalResource
-
- finished(Description) - Method in class org.testcontainers.containers.GenericContainer
-
- 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(Consumer<OutputFrame>) - Method in class org.testcontainers.containers.GenericContainer
-
Follow container output, sending each frame (usually, line) to a consumer.
- followOutput(Consumer<OutputFrame>, OutputFrame.OutputType...) - Method in class org.testcontainers.containers.GenericContainer
-
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
- 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)
- forFrame(Frame) - Static method in class org.testcontainers.containers.output.OutputFrame
-
- 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.
- forHttp(String) - Static method in class org.testcontainers.containers.wait.Wait
-
Convenience method to return a WaitStrategy for an HTTP endpoint.
- forHttps(String) - Static method in class org.testcontainers.containers.wait.Wait
-
Convenience method to return a WaitStrategy for an HTTPS endpoint.
- forListeningPort() - Static method in class org.testcontainers.containers.wait.Wait
-
Convenience method to return a WaitStrategy for an exposed or mapped port.
- forPath(String) - Method in class org.testcontainers.containers.wait.HttpWaitStrategy
-
Waits for the given path.
- forStatusCode(int) - Method in class org.testcontainers.containers.wait.HttpWaitStrategy
-
Waits for the given status code.
- 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
-
- 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
-
- Wait - Class in org.testcontainers.containers.wait
-
Convenience class with logic for building common
WaitStrategy
instances.
- Wait() - Constructor for class org.testcontainers.containers.wait.Wait
-
- 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(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
-
Approach to determine whether a container is ready.
- 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
-
Wait until the container has started.
- waitUntilReady() - Method in class org.testcontainers.containers.GenericContainer.AbstractWaitStrategy
-
- waitUntilReady() - Method in class org.testcontainers.containers.wait.HostPortWaitStrategy
-
- waitUntilReady() - Method in class org.testcontainers.containers.wait.HttpWaitStrategy
-
- waitUntilReady() - Method in class org.testcontainers.containers.wait.LogMessageWaitStrategy
-
- waitUntilReady(GenericContainer) - Method in interface org.testcontainers.containers.wait.WaitStrategy
-
Wait until the container has started.
- 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
-
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) - 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
- 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(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
-
- 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
-
- withFileFromPath(String, Path) - Method in interface org.testcontainers.images.builder.traits.FilesTrait
-
- 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, 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 port on the docker host to a container port
- 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(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.
- 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.
- withRegEx(String) - Method in class org.testcontainers.containers.wait.LogMessageWaitStrategy
-
- 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
-
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 interface org.testcontainers.containers.wait.WaitStrategy
-
- withStatement(Statement) - Method in interface org.testcontainers.images.builder.dockerfile.traits.DockerfileBuilderTrait
-
- withTailChildContainers(boolean) - Method in class org.testcontainers.containers.DockerComposeContainer
-
Whether to tail child container logs.
- withTimes(int) - Method in class org.testcontainers.containers.wait.LogMessageWaitStrategy
-
- 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
-