This is collection of additional Test containers
<dependency>
<groupId>com.rpuch.more-testcontainers</groupId>
<artifactId>gremlin-server-testcontainer</artifactId>
<version>1.0.0</version>
<scope>test</scope>
</dependency>
testRuntime 'com.rpuch.more-testcontainers:gremlin-server-testcontainer:1.0.0'
@Testcontainers
class MyTest {
@Container
private GremlinServerContainer gremlinServer = new GremlinServerContainer();
@Test
void simpleTest() throws Exception {
try (RemoteConnection connection = gremlinServer.openConnection()) {
GraphTraversalSource g = AnonymousTraversalSource.traversal().withRemote(connection);
long totalVertices = g.V().count().next();
assertThat(totalVertices).isEqualTo(0);
}
}
}
<dependency>
<groupId>com.rpuch.more-testcontainers</groupId>
<artifactId>janusgraph-testcontainer</artifactId>
<version>1.0.0</version>
<scope>test</scope>
</dependency>
testRuntime 'com.rpuch.more-testcontainers:janusgraph-testcontainer:1.0.0'
@Testcontainers
class MyTest {
@Container
private JanusgraphContainer janusgraph = new JanusgraphContainer();
@Test
void simpleTest() throws Exception {
try (RemoteConnection connection = janusgraph.openConnection()) {
GraphTraversalSource g = AnonymousTraversalSource.traversal().withRemote(connection);
long totalVertices = g.V().count().next();
assertThat(totalVertices).isEqualTo(0);
}
}
}