More testcontainers

Testcontainers for gremlin-server and janusgraph

Лицензия

Лицензия

Категории

Категории

Контейнер
Группа

Группа

com.rpuch.more-testcontainers
Идентификатор

Идентификатор

more-testcontainers-parent
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

pom
Описание

Описание

More testcontainers
Testcontainers for gremlin-server and janusgraph
Ссылка на сайт

Ссылка на сайт

https://github.com/rpuch/more-testcontainers
Система контроля версий

Система контроля версий

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

Скачать more-testcontainers-parent

Имя Файла Размер
more-testcontainers-parent-1.0.0.pom 8 KB
Обзор

Как подключить последнюю версию

<!-- 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"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
org.junit.jupiter : junit-jupiter-engine jar 5.7.1

Модули Проекта

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

Версии библиотеки

Версия
1.0.0