Search in sources :

Example 1 with StartPipe

use of com.tinkerpop.pipes.util.StartPipe in project gremlin by tinkerpop.

the class GremlinStartPipeTest method testNoGraphInPath.

public void testNoGraphInPath() {
    Graph graph = TinkerGraphFactory.createTinkerGraph();
    Pipe pipe = new GremlinStartPipe(graph);
    pipe.enablePath(true);
    assertEquals(pipe.getCurrentPath().size(), 0);
    pipe = new StartPipe(graph);
    pipe.enablePath(true);
    assertEquals(pipe.getCurrentPath().size(), 1);
}
Also used : Graph(com.tinkerpop.blueprints.Graph) StartPipe(com.tinkerpop.pipes.util.StartPipe) Pipe(com.tinkerpop.pipes.Pipe) StartPipe(com.tinkerpop.pipes.util.StartPipe)

Aggregations

Graph (com.tinkerpop.blueprints.Graph)1 Pipe (com.tinkerpop.pipes.Pipe)1 StartPipe (com.tinkerpop.pipes.util.StartPipe)1