This project illustrates how to utilize Testcontainers in a Spring Boot project and what some potential use cases may look like.
You need to have the following installed:
- JDK 11 or 17 (intermediate versions may work but are not guaranteed)
- Docker (the Docker daemon must be running for tests using Testcontainers)
Tests
$ ./gradlew test
Run app locally in Docker:
$ ./buildAndRun.sh