Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/modules/databases/orientdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ testCompile "org.testcontainers:orientdb:{{latest_version}}"
Add the OrientDB Java client if you plan to access the Testcontainer:

```groovy tab='Gradle'
compile "com.orientechnologies:orientdb-client:3.0.24"
compile "com.orientechnologies:orientdb-client:3.1.0"
```

```xml tab='Maven'
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-client</artifactId>
<version>3.0.24</version>
<version>3.1.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion modules/orientdb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description = "TestContainers :: Orientdb"
dependencies {
compile project(":testcontainers")

compile "com.orientechnologies:orientdb-client:3.0.24"
compile "com.orientechnologies:orientdb-client:3.1.0"

testCompile 'org.assertj:assertj-core:3.12.0'
testCompile 'org.apache.tinkerpop:gremlin-driver:3.3.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class OrientDBContainer extends GenericContainer<OrientDBContainer> {
private static final Logger LOGGER = LoggerFactory.getLogger(OrientDBContainer.class);

private static final String DEFAULT_IMAGE_NAME = "orientdb";
private static final String DEFAULT_TAG = "3.0.24-tp3";
private static final String DEFAULT_TAG = "3.1.0-tp3";
private static final String DOCKER_IMAGE_NAME = DEFAULT_IMAGE_NAME + ":" + DEFAULT_TAG;

private static final String DEFAULT_USERNAME = "admin";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,6 @@ public void shouldInitializeWithCommands() {
}
}

@Test
public void shouldQueryWithGremlin() {

try (OrientDBContainer container = new OrientDBContainer()) {
container.start();

final ODatabaseSession session = container.getSession("admin", "admin");

session.command("CREATE CLASS Person EXTENDS V");
session.command("INSERT INTO Person set name='john'");
session.command("INSERT INTO Person set name='jane'");

assertThat(session.execute("gremlin",
"g.V().hasLabel('Person')").stream()).hasSize(2);
}
}

@Test
public void shouldInitializeDatabaseFromScript() {
try (OrientDBContainer container = new OrientDBContainer()
Expand Down