コード例 #1
0
 @Test
 public void testFindAll() throws Exception {
   assertEquals("MATCH p=()-->() RETURN p", query.findAll().getStatement());
 }
コード例 #2
0
 @Test(expected = InvalidDepthException.class)
 public void testFindAllCollectionZeroDepth() throws Exception {
   query.findAll(Arrays.asList(1L, 2L, 3L), 0).getStatement();
 }
コード例 #3
0
 @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());
 }