use of org.neo4j.driver.v1.StatementResult in project neo4j by neo4j.
the class ProcedureTest method calls_simplistic_procedure.
@Test
public void calls_simplistic_procedure() {
try (Driver driver = GraphDatabase.driver(graphDb.boltURI(), configuration());
Session session = driver.session()) {
StatementResult result = session.run("CALL " + procedureNamespace + ".theAnswer()");
assertThat(result.single().get("value").asLong()).isEqualTo(42L);
}
}
Aggregations