Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldSkipCheckPoints() throws java.io.IOException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldSkipCheckPoints()
        {
            // given
            when(_entryReader.readLogEntry(_channel)).thenReturn(_aCheckPointEntry, _aStartEntry, _aCommandEntry, _aCommitEntry, _aCheckPointEntry);

            // when
            _cursor.next();

            // then
            PhysicalTransactionRepresentation txRepresentation = new PhysicalTransactionRepresentation(singletonList(_aCommandEntry.Command));

            assertEquals(new CommittedTransactionRepresentation(_aStartEntry, txRepresentation, _aCommitEntry), _cursor.get());
        }