8000 GitHub - mjkrumlauf/more-testcontainers
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mjkrumlauf/more-testcontainers

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.0%
  • Shell 1.0%
0