public void verify(String dbPath) { EmbeddedGraphDatabase graphDb = new EmbeddedGraphDatabase(dbPath); assertEquals( "Reference node did not have zero relationships.", 0, IteratorUtil.count(graphDb.getReferenceNode().getRelationships())); assertEquals("There was more than one node.", 1, IteratorUtil.count(graphDb.getAllNodes())); graphDb.shutdown(); }
public Iterable<Node> getAllNodes() { return inner.getAllNodes(); }