Embedded testcontainers library to support JUnit tests for stateful services.
Include commons dependency and required datastore testcontainer dependency in your pom
<groupId>io.appform.testcontainer</groupId>
<artifactId>junit-testcontainer-commons</artifactId>
<version>${current.version}</version>
<groupId>io.appform.testcontainer</groupId>
<artifactId>junit-testcontainer-aerospike</artifactId>
<version>${current.version}</version>
<groupId>io.appform.testcontainer</groupId>
<artifactId>junit-testcontainer-elasticsearch</artifactId>
<version>${current.version}</version>
<groupId>io.appform.testcontainer</groupId>
<artifactId>junit-testcontainer-rabbitmq</artifactId>
<version>${current.version}</version>
<groupId>io.appform.testcontainer</groupId>
<artifactId>junit-testcontainer-hbase</artifactId>
<version>${current.version}</version>
<groupId>io.appform.testcontainer</groupId>
<artifactId>junit-testcontainer-zookeeper</artifactId>
<version>${current.version}</version>
Source : testcontainers spring-boot
MIT