@Test public void testTraverse() { RootedTraverser traverser = new DFSTraverser(); traverser.setQueryHandler(new QueryHandler(QueryHandlerTest.TEST_QUERY)); TraversalCode result = traverser.traverse(); assertTrue(Iterables.elementsEqual(result.getSteps(), Lists.newArrayList( new Step(0L, 2L, 1L, false), new Step(1L, 0L, 0L, false), new Step(1L, 1L, 2L, true), new Step(2L, 3L, 2L, true) ))); }
@Override public TraversalCode traverse() { return traverse(queryHandler.getVertices().iterator().next().getId()); }
DFSTraverser implements RootedTraverser { @Override public TraversalCode traverse() { return traverse(queryHandler.getVertices().iterator().next().getId()); } }
DFSTraverser implements RootedTraverser { @Override public TraversalCode traverse() { return traverse(queryHandler.getVertices().iterator().next().getId()); }  }
DFSTraverser implements RootedTraverser { @Override public TraversalCode traverse() { return traverse(queryHandler.getVertices().iterator().next().getId()); }  @Override TraversalCode traverse(); @Override void setQueryHandler(QueryHandler queryHandler); @Override QueryHandler getQueryHandler(); @Override TraversalCode traverse(long rootVertex); }
DFSTraverser implements RootedTraverser { @Override public TraversalCode traverse() { return traverse(queryHandler.getVertices().iterator().next().getId()); }  @Override TraversalCode traverse(); @Override void setQueryHandler(QueryHandler queryHandler); @Override QueryHandler getQueryHandler(); @Override TraversalCode traverse(long rootVertex);  }