use of org.neo4j.driver.Values in project neo4j by neo4j.
the class SnapshotExecutionTest method testEntityVirtualTypes.
// Since most test work with primitives (storable values), this is a smoke test that
// entity types work as result of Snapshot EE
@Test
void testEntityVirtualTypes() {
var query = joinAsLines("CREATE (n1:LABEL_1), (n2:LABEL_2)", "MERGE (n1) - [:TYPE_1] -> (n2)", "RETURN () - [] -> ()[0] AS p");
Path p = driver.session().run(query).stream().map(r -> r.get("p")).findFirst().get().asPath();
assertThat(p.start().labels()).containsExactly("LABEL_1");
assertThat(p.end().labels()).containsExactly("LABEL_2");
}
Aggregations