APISonar


org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource.io

> org > apache > tinkerpop > gremlin > process > traversal > dsl > graph > GraphTraversalSource > io
org APIs apache APIs tinkerpop APIs gremlin APIs process APIs traversal APIs dsl APIs graph APIs GraphTraversalSource APIs io APIs

Example 1
public void shouldAddJanusGraphRegistryForIoTraversal() {
        JanusGraph graph = StorageSetup.getInMemoryGraph();
        GraphTraversalSource g = graph.traversal();

        GraphTraversal<Object, Object> t = g.io("someNonExistingFile");
        t.asAdmin().applyStrategies();

        IoStep ioStep = (IoStep) t.asAdmin().getStartStep();
        assertEquals(JanusGraphIoRegistry.instance(),
            ioStep.getParameters().get(IO.registry, null).get(0));
    }