diff --git a/core/src/test/java/apoc/load/XmlTest.java b/core/src/test/java/apoc/load/XmlTest.java index a6de097b16..625860ac68 100644 --- a/core/src/test/java/apoc/load/XmlTest.java +++ b/core/src/test/java/apoc/load/XmlTest.java @@ -269,12 +269,12 @@ private void commonAssertionsWithNextWordRels(String query, Map }); // no node more than one NEXT/NEXT_SIBLING - testCallEmpty(db, "match (n) where size( (n)-[:NEXT]->() ) > 1 return n", null); - testCallEmpty(db, "match (n) where size( (n)-[:NEXT_SIBLING]->() ) > 1 return n", null); + testCallEmpty(db, "match (n) where size([p = (n)-[:NEXT]->() | p ]) > 1 return n", null); + testCallEmpty(db, "match (n) where size([p = (n)-[:NEXT_SIBLING]->() | p ]) > 1 return n", null); // no node more than one IS_FIRST_CHILD / IS_LAST_CHILD - testCallEmpty(db, "match (n) where size( (n)<-[:FIRST_CHILD_OF]-() ) > 1 return n", null); - testCallEmpty(db, "match (n) where size( (n)<-[:LAST_CHILD_OF]-() ) > 1 return n", null); + testCallEmpty(db, "match (n) where size([p = (n)<-[:FIRST_CHILD_OF]-() | p ]) > 1 return n", null); + testCallEmpty(db, "match (n) where size([p = (n)<-[:LAST_CHILD_OF]-() | p ]) > 1 return n", null); // NEXT_WORD relationship do connect all word nodes testResult(db, "match p=(:XmlDocument)-[:NEXT_WORD*]->(e:XmlWord) where not (e)-[:NEXT_WORD]->() return length(p) as len", @@ -299,12 +299,12 @@ public void testLoadXmlWithNextEntityRels() { }); // no node more than one NEXT/NEXT_SIBLING - testCallEmpty(db, "match (n) where size( (n)-[:NEXT]->() ) > 1 return n", null); - testCallEmpty(db, "match (n) where size( (n)-[:NEXT_SIBLING]->() ) > 1 return n", null); + testCallEmpty(db, "match (n) where size([p = (n)-[:NEXT]->() | p ]) > 1 return n", null); + testCallEmpty(db, "match (n) where size([p = (n)-[:NEXT_SIBLING]->() | p ]) > 1 return n", null); // no node more than one IS_FIRST_CHILD / IS_LAST_CHILD - testCallEmpty(db, "match (n) where size( (n)<-[:FIRST_CHILD_OF]-() ) > 1 return n", null); - testCallEmpty(db, "match (n) where size( (n)<-[:LAST_CHILD_OF]-() ) > 1 return n", null); + testCallEmpty(db, "match (n) where size([p = (n)<-[:FIRST_CHILD_OF]-() | p ]) > 1 return n", null); + testCallEmpty(db, "match (n) where size([p = (n)<-[:LAST_CHILD_OF]-() | p ]) > 1 return n", null); // NEXT_WORD relationship do connect all word nodes testResult(db, "match p=(:XmlDocument)-[:NE*]->(e:XmlCharacters) where not (e)-[:NE]->() return length(p) as len",