@Test public void testFindAll() throws Exception { assertEquals("MATCH p=()-->() RETURN p", query.findAll().getStatement()); }
@Test(expected = InvalidDepthException.class) public void testFindAllCollectionZeroDepth() throws Exception { query.findAll(Arrays.asList(1L, 2L, 3L), 0).getStatement(); }
@Test public void testFindAllCollection() throws Exception { assertEquals( "MATCH (n)-[r]->() WHERE ID(r) IN { ids } WITH n MATCH p=(n)-[*0..1]-(m) RETURN p", query.findAll(Arrays.asList(1L, 2L, 3L), 1).getStatement()); }