TestContainers ArangoDB testing module
Testcontainers module for ArangoDB.
Table of Contents
Overview
See testcontainers.org for more information about Testcontainers.
Getting started
Add dependency
<dependency>
<groupId>io.github.ganchix</groupId>
<artifactId>testcontainers-java-module-arangodb</artifactId>
<version>0.0.1</version>
</dependency>
Gradle
compile group: 'io.github.ganchix', name: 'testcontainers-java-module-arangodb', version: '0.0.1'
Code example
Running ArangoDB during a test:
public class SomeTest {
@Rule
public ArangoDBContainer arangoDBContainer = new ArangoDBContainer().withoutAuthentication();
@Test
public void simpleTestWithClientCreation() {
ArangoDB arangoDB = arangoDBContainer.getArangoDB();
assertNotNull(arangoDB.getVersion().getServer());
}
}
License
Testcontainers module for ArangoDB is licensed under the MIT License. See LICENSE for details.
Copyright (c) 2018 Rafael Ríos Moya