!
Plain or custom Docker
image
!
One instance for all
tests
Slide 36
Testcontainers
Slide 37
Testcontainers is a Java library that
supports JUnit tests, providing
lightweight, throwaway instances of
common databases [...] that can run in a
Docker container.
Slide 38
Dependency
@ClassRule
public
static
GenericContainer redis =
new
GenericContainer(
"redis:3.0.2"
)
.withExposedPorts(
6379
);