Lots of databases are easy to test because you can embed them in the JVM. Other databases will have an in-memory implementation or mock solutions. Some however won’t work this way. Or maybe you would prefer to test the actual database deployment in your integration test.
One of the available solutions these days is to use containers. In this talk I’ll show you how to use TestContainers to test common, supported DBs, I’ll also demonstrate how to add support for Couchbase as well as other test prerequisites infrastructure.