use of org.neo4j.cypher.internal.javacompat.ExecutionResult in project neo4j by neo4j.
the class ExportTest method testEscapingOfNodeStringPropertyValue.
@Test
public void testEscapingOfNodeStringPropertyValue() throws Exception {
Node n = gdb.createNode();
n.setProperty("name", "Brutus \"Brutal\" Howell");
final ExecutionResult result = result("node", n);
final SubGraph graph = CypherResultSubGraph.from(result, gdb, false);
assertEquals("create (_" + n.getId() + " {`name`:\"Brutus \\\"Brutal\\\" Howell\"})" + lineSeparator() + ";" + lineSeparator(), doExportGraph(graph));
}
Aggregations