More testcontainers

Testcontainers for gremlin-server and janusgraph

License

License

Categories

Categories

Container
GroupId

GroupId

com.rpuch.more-testcontainers
ArtifactId

ArtifactId

more-testcontainers-parent
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

pom
Description

Description

More testcontainers
Testcontainers for gremlin-server and janusgraph
Project URL

Project URL

https://github.com/rpuch/more-testcontainers
Source Code Management

Source Code Management

https://github.com/rpuch/more-testcontainers

Download more-testcontainers-parent

How to add to project

<!-- https://jarcasting.com/artifacts/com.rpuch.more-testcontainers/more-testcontainers-parent/ -->
<dependency>
    <groupId>com.rpuch.more-testcontainers</groupId>
    <artifactId>more-testcontainers-parent</artifactId>
    <version>1.0.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.rpuch.more-testcontainers/more-testcontainers-parent/
implementation 'com.rpuch.more-testcontainers:more-testcontainers-parent:1.0.0'
// https://jarcasting.com/artifacts/com.rpuch.more-testcontainers/more-testcontainers-parent/
implementation ("com.rpuch.more-testcontainers:more-testcontainers-parent:1.0.0")
'com.rpuch.more-testcontainers:more-testcontainers-parent:pom:1.0.0'
<dependency org="com.rpuch.more-testcontainers" name="more-testcontainers-parent" rev="1.0.0">
  <artifact name="more-testcontainers-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.rpuch.more-testcontainers', module='more-testcontainers-parent', version='1.0.0')
)
libraryDependencies += "com.rpuch.more-testcontainers" % "more-testcontainers-parent" % "1.0.0"
[com.rpuch.more-testcontainers/more-testcontainers-parent "1.0.0"]

Dependencies

test (1)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.7.1

Project Modules

  • gremlin-server
  • janusgraph

Maven Central Build Status codecov

More Testcontainers

This is collection of additional Test containers

gremlin-server

Maven

<dependency>
  <groupId>com.rpuch.more-testcontainers</groupId>
  <artifactId>gremlin-server-testcontainer</artifactId>
  <version>1.0.0</version>
  <scope>test</scope>
</dependency>

Gradle

testRuntime 'com.rpuch.more-testcontainers:gremlin-server-testcontainer:1.0.0'

Junit 5 test

@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);
        }
    }
}

JanusGraph

Maven

<dependency>
  <groupId>com.rpuch.more-testcontainers</groupId>
  <artifactId>janusgraph-testcontainer</artifactId>
  <version>1.0.0</version>
  <scope>test</scope>
</dependency>

Gradle

testRuntime 'com.rpuch.more-testcontainers:janusgraph-testcontainer:1.0.0'

Junit 5 test

@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);
        }
    }
}

Versions

Version
1.0.0