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);
}