Skip to content

Instantly share code, notes, and snippets.

@okram
Created Oct 3, 2011
Embed
What would you like to do?
/// IN TEST SUITE
public void testBasicWalk(Pipeline<Vertex,Vertex> pipeline) {
int counter = 0;
while(pipeline.hasNext()) {
Vertex v = pipeline.next();
assertEquals(v.getProperty("type"), "person");
}
assertEquals(counter, 5);
}
// IN GREMLIN GROOVY (DO THE MAPPING FOR SCALA)
public void testBasicWalk() {
super.testBasicWalk(g.v(1).outE.inV);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment