use of org.neo4j.internal.kernel.api.helpers.CachingExpandInto in project neo4j by neo4j.
the class CachingExpandIntoTest method shouldRecomputeIfSameNodesAndTypesIfCacheIsFull.
@Test
void shouldRecomputeIfSameNodesAndTypesIfCacheIsFull() throws Exception {
// Given
CachingExpandInto expandInto = new CachingExpandInto(mock(Read.class), OUTGOING, memoryTracker, 0, true);
findConnections(expandInto, mockCursor(), 42, 43, 100, 101);
NodeCursor cursor = mockCursor();
// When
findConnections(expandInto, cursor, 42, 43, 100, 101);
// Then
verify(cursor, atLeastOnce()).next();
assertReleasesHeap(expandInto);
}
Aggregations