public class ContainerUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Duration |
DEFAULT_CONTAINER_WAIT_DURATION |
| Constructor and Description |
|---|
ContainerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.testcontainers.containers.GenericContainer<?> |
configureCommonsAndStart(org.testcontainers.containers.GenericContainer<?> container,
CommonContainerProperties properties,
org.slf4j.Logger logger) |
static Consumer<org.testcontainers.containers.output.OutputFrame> |
containerLogsConsumer(org.slf4j.Logger log) |
static org.testcontainers.containers.Container.ExecResult |
executeAndCheckExitCode(org.testcontainers.containers.ContainerState container,
String... command) |
static org.testcontainers.containers.Container.ExecResult |
executeInContainer(org.testcontainers.containers.ContainerState container,
String... command) |
static int |
getAvailableMappingPort() |
public static final Duration DEFAULT_CONTAINER_WAIT_DURATION
public static org.testcontainers.containers.GenericContainer<?> configureCommonsAndStart(org.testcontainers.containers.GenericContainer<?> container,
CommonContainerProperties properties,
org.slf4j.Logger logger)
public static int getAvailableMappingPort()
public static Consumer<org.testcontainers.containers.output.OutputFrame> containerLogsConsumer(org.slf4j.Logger log)
public static org.testcontainers.containers.Container.ExecResult executeInContainer(org.testcontainers.containers.ContainerState container,
String... command)
public static org.testcontainers.containers.Container.ExecResult executeAndCheckExitCode(org.testcontainers.containers.ContainerState container,
String... command)
Copyright © 2022. All rights reserved.