Skip to content

Mule MUnit Connector for using TestContainers in Testing

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

manikmagar/munit-db-testcontainers-connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MUnit DB TestContainers Anypoint Connector

This connector allows using TestContainers to create Database instances for MUnit testing of Mule applications and API.

Mule supported versions

Mule 3.5.3 and onward.

Databases Supported

This connector uses TestContainers to create database instance. Thus, it supports creating all those databases that are supported by TestContainers. See this.

Installation

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.

Maven Dependency

<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.

TestContainers Database Usage Dependency

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>	

Demo Usage

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

Reporting Issues

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.

About

Mule MUnit Connector for using TestContainers in Testing

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages