Skip to content

ganchix/testcontainers-java-module-arangodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestContainers ArangoDB testing module Build Status codecov Maven Central GitHub stars

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