Skip to content

Instantly share code, notes, and snippets.

@okram
Created October 3, 2011 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okram/1259303 to your computer and use it in GitHub Desktop.
Save okram/1259303 to your computer and use it in GitHub Desktop.
/// 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