Testcontainers module for the MariaDB database.
Running MariaDB as a stand-in for in a test:
public class SomeTest {
@Rule
public MariaDBContainer mariaDB = new MariaDBContainer();
@Test
public void someTestMethod() {
String url = mariaDB.getJdbcUrl();
... create a connection and run test as normalReplace VERSION with the latest version available on Maven Central.
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>mariadb</artifactId>
<version>VERSION</version>
</dependency>
compile group: 'org.testcontainers', name: 'mariadb', version: 'VERSION'