Any other database type that can be containerized can also be used. Data access layer integration tests: use a containerized instance of a MySQL, PostgreSQL or Oracle database to test your data access layer code for complete compatibility, but without requiring complex setup on developers' machines and safe in the knowledge that your tests will always start with a known DB state.Testcontainers make the following kinds of tests easier: Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container. Patterns for running tests inside a Docker container
Waiting for containers to start or be ready Networking and communicating with containers Managing versions for multiple Testcontainers dependencies