use of org.neo4j.kernel.impl.api.StatementOperationParts in project neo4j by neo4j.
the class GuardIT method includeGuardingOperationLayerOnGuardingParts.
@Test
public void includeGuardingOperationLayerOnGuardingParts() throws Exception {
GraphDatabaseAPI database = startDataBase();
DependencyResolver dependencyResolver = database.getDependencyResolver();
StatementOperationContainer operationParts = dependencyResolver.resolveDependency(StatementOperationContainer.class);
StatementOperationParts guardedParts = operationParts.guardedParts();
assertThat(guardedParts.entityReadOperations(), instanceOf(GuardingStatementOperations.class));
assertThat(guardedParts.entityWriteOperations(), instanceOf(GuardingStatementOperations.class));
}
Aggregations