use of org.neo4j.internal.kernel.api.helpers.StubRelationshipCursor in project neo4j by neo4j.
the class OperationsTest method returnRelationships.
public static void returnRelationships(KernelTransactionImplementation ktx, final TestRelationshipChain relIds) {
StubRead read = new StubRead();
when(ktx.dataRead()).thenReturn(read);
StubCursorFactory cursorFactory = new StubCursorFactory(true);
cursorFactory.withRelationshipTraversalCursors(new StubRelationshipCursor(relIds));
when(ktx.lockTracer()).thenReturn(NONE);
when(ktx.cursors()).thenReturn(cursorFactory);
when(ktx.ambientNodeCursor()).thenAnswer(args -> new StubNodeCursor(false).withNode(42L));
}
Aggregations