I have implemented couchdb datastore on my repo . I want to add test class. So, I must start couchdb server programmatically. But couchdb doesn't support that to start couchdb server programmatically using java. Situations like it may occur in the other datastore implementations. So If docker is used, the datastore starts for testing.
TestContainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases that can run in a Docker container.