This connector allows using TestContainers to create Database instances for MUnit testing of Mule applications and API.
Mule 3.5.3 and onward.
This connector uses TestContainers to create database instance. Thus, it supports creating all those databases that are supported by TestContainers. See this.
For beta connectors you can download the source code and build it with devkit to find it available on your local repository. Then you can add it to Studio.
For released connectors you can download them from the update site in Anypoint Studio. Open Anypoint Studio, go to Help → Install New Software and select Anypoint Connectors Update Site where you’ll find all avaliable connectors.
<dependency>
<groupId>com.unittesters</groupId>
<artifactId>munit-db-testcontainers-connector</artifactId>
<version>${tc.connector.version}</version>
<scope>test</scope>
</dependency>
Get latest version from Maven Central.
To use the required database in your application, include the appropriate TestContainers JDBC dependency from the latest version available on Maven Central. For example, to use MySQL Database, you would add -
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>mysql</artifactId>
<version>{connector-supported-version}</version>
<scope>test</scope>
</dependency>
For information about usage our documentation at https://github.com/manikmagar/munit-db-testcontainers-demo. YouTube presentation on VirtualMuleys channel - https://www.youtube.com/watch?v=EJ3r5uEPhKU&t=8s
We use GitHub:Issues for tracking issues with this connector. You can report new issues at this link http://github.com/manikmagar/munit-db-testcontainers-connector/issues.