use of org.neo4j.ogm.request.GraphModelRequest in project neo4j-ogm by neo4j.
the class StrictQueryingTest method shouldUseAllLabelsForAllEntitiesInInheritanceScenario.
// GH-651
@Test
public void shouldUseAllLabelsForAllEntitiesInInheritanceScenario() {
LoadByTypeDelegate delegate = new LoadByTypeDelegate(neo4jSession);
delegate.loadAll(PersistentCategory.class);
ArgumentCaptor<GraphModelRequest> argumentCaptor = ArgumentCaptor.forClass(GraphModelRequest.class);
verify(request).execute(argumentCaptor.capture());
assertThat(argumentCaptor.getValue().getStatement()).isEqualTo("MATCH (n:`Category`:`Entity`) WITH n MATCH p=(n)-[*0..1]-(m) RETURN p");
}
Aggregations