Search in sources :

Example 1 with WrapperGraph

use of com.tinkerpop.blueprints.util.wrappers.WrapperGraph in project blueprints by tinkerpop.

the class IdGraphTest method testIdIndicesExist.

public void testIdIndicesExist() throws Exception {
    KeyIndexableGraph graph = (KeyIndexableGraph) generateGraph();
    graph = (KeyIndexableGraph) ((WrapperGraph) graph).getBaseGraph();
    assertTrue(graph.getIndexedKeys(Vertex.class).contains(IdGraph.ID));
    assertTrue(graph.getIndexedKeys(Edge.class).contains(IdGraph.ID));
    graph.shutdown();
}
Also used : WrapperGraph(com.tinkerpop.blueprints.util.wrappers.WrapperGraph) KeyIndexableGraph(com.tinkerpop.blueprints.KeyIndexableGraph)

Aggregations

KeyIndexableGraph (com.tinkerpop.blueprints.KeyIndexableGraph)1 WrapperGraph (com.tinkerpop.blueprints.util.wrappers.WrapperGraph)1