Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void relationshipGroupCursorShouldClosePageCursor()
        internal virtual void RelationshipGroupCursorShouldClosePageCursor()
        {
            RelationshipStore relationshipStore      = mock(typeof(RelationshipStore));
            PageCursor        relationshipPageCursor = mock(typeof(PageCursor));

            when(relationshipStore.OpenPageCursorForReading(anyLong())).thenReturn(relationshipPageCursor);
            RelationshipGroupStore store      = mock(typeof(RelationshipGroupStore));
            PageCursor             pageCursor = mock(typeof(PageCursor));

            when(store.OpenPageCursorForReading(anyLong())).thenReturn(pageCursor);

            using (RecordRelationshipGroupCursor cursor = new RecordRelationshipGroupCursor(relationshipStore, store))
            {
                cursor.Init(0, 0);
            }
            verify(pageCursor).close();
            verifyZeroInteractions(relationshipStore, relationshipPageCursor);
        }
Exemplo n.º 2
0
 internal RecordRelationshipTraversalCursor(RelationshipStore relationshipStore, RelationshipGroupStore groupStore) : base(relationshipStore)
 {
     this._group = new RecordRelationshipGroupCursor(relationshipStore, groupStore);
 }