diff --git a/core/src/test/java/apoc/export/cypher/ExportCypherTest.java b/core/src/test/java/apoc/export/cypher/ExportCypherTest.java index 467441e63bc253d0c428f5e6e64f4552f4ca73cf..6b3a28cdb387ebcfb54ef11e47e25870364f45cc 100644 --- a/core/src/test/java/apoc/export/cypher/ExportCypherTest.java +++ b/core/src/test/java/apoc/export/cypher/ExportCypherTest.java @@ -632,25 +632,7 @@ public class ExportCypherTest { }); } - - @Test - public void shouldQuotePropertyNameStartingWithDollarCharacter() { - db.executeTransactionally("CREATE (n:Bar:Baz{name: 'A', `$lock`: true})"); - String query = "MATCH (n:Baz) RETURN n"; - final String expected = "UNWIND [{name:\"A\", properties:{`$lock`:true}}] AS row\n" + - "CREATE (n:Bar{name: row.name}) SET n += row.properties SET n:Baz"; - TestUtil.testCall(db, "CALL apoc.export.cypher.query($query, $file, $config)", - map("file", null, "query", query, "config", map("format", "plain", "stream", true)), (r) -> { - final String cypherStatements = (String) r.get("cypherStatements"); - String unwind = Stream.of(cypherStatements.split(";")) - .map(String::trim) - .filter(s -> s.startsWith("UNWIND")) - .findFirst() - .orElse(null); - assertEquals(expected, unwind); - }); - } - + @Test public void shouldQuotePropertyNameStartingWithDollarCharacter() { db.executeTransactionally("CREATE (n:Bar:Baz{name: 'A', `$lock`: true})");