Search in sources :

Example 11 with Cluster

use of org.apache.tinkerpop.gremlin.driver.Cluster in project janusgraph by JanusGraph.

the class ConfigurationManagementGraphServerTest method ensureServerIsRunningCorrectly.

@Test
public void ensureServerIsRunningCorrectly() throws Exception {
    final Cluster cluster = TestClientFactory.open();
    final Client client = cluster.connect();
    assertEquals(2, client.submit("1+1").all().get().get(0).getInt());
}
Also used : Cluster(org.apache.tinkerpop.gremlin.driver.Cluster) Client(org.apache.tinkerpop.gremlin.driver.Client) Test(org.junit.jupiter.api.Test)

Aggregations

Cluster (org.apache.tinkerpop.gremlin.driver.Cluster)11 Client (org.apache.tinkerpop.gremlin.driver.Client)7 Test (org.junit.Test)5 Test (org.junit.jupiter.api.Test)4 Map (java.util.Map)2 BaseConfiguration (org.apache.commons.configuration.BaseConfiguration)2 GraphTraversalSource (org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource)2 Driver (org.neo4j.driver.v1.Driver)2 CypherGremlinClient (org.opencypher.gremlin.client.CypherGremlinClient)2 ExecutionException (java.util.concurrent.ExecutionException)1 Session (org.neo4j.driver.v1.Session)1 StatementResult (org.neo4j.driver.v1.StatementResult)1 CypherResultSet (org.opencypher.gremlin.client.CypherResultSet)1