Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void olderLogFileContainingAStartAndNewerFileContainingACheckPointPointingToAPreviousPositionThanStartWithoutCommit()
        public virtual void OlderLogFileContainingAStartAndNewerFileContainingACheckPointPointingToAPreviousPositionThanStartWithoutCommit()
        {
            // given
            StartEntry start = start();

            SetupLogFiles(LogFile(start), LogFile(CheckPoint(start)));

            // when
            LogTailInformation logTailInformation = _tailScanner.TailInformation;

            // then
            AssertLatestCheckPoint(true, false, NO_TRANSACTION_ID, _endLogVersion, logTailInformation);
        }
Example #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void latestLogFileContainingACheckPointAndAStartWithoutCommitAfter()
        public virtual void LatestLogFileContainingACheckPointAndAStartWithoutCommitAfter()
        {
            // given
            StartEntry start = start();

            SetupLogFiles(LogFile(start, CheckPoint(start)));

            // when
            LogTailInformation logTailInformation = _tailScanner.TailInformation;

            // then
            AssertLatestCheckPoint(true, true, NO_TRANSACTION_ID, _endLogVersion, logTailInformation);
        }
Example #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void olderLogFileContainingACheckPointAndNewerFileIsEmpty()
        public virtual void OlderLogFileContainingACheckPointAndNewerFileIsEmpty()
        {
            // given
            StartEntry start = start();

            SetupLogFiles(LogFile(start, CheckPoint()), LogFile());

            // when
            LogTailInformation logTailInformation = _tailScanner.TailInformation;

            // then
            AssertLatestCheckPoint(true, true, NO_TRANSACTION_ID, _startLogVersion, logTailInformation);
        }
Example #4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void olderLogFileContainingAStartAndNewerFileContainingACheckPointPointingToAPreviousPositionThanStart()
        public virtual void OlderLogFileContainingAStartAndNewerFileContainingACheckPointPointingToAPreviousPositionThanStart()
        {
            // given
            long       txId  = 123;
            StartEntry start = start();

            SetupLogFiles(LogFile(start, Commit(txId)), LogFile(CheckPoint(start)));

            // when
            LogTailInformation logTailInformation = _tailScanner.TailInformation;

            // then
            AssertLatestCheckPoint(true, true, txId, _endLogVersion, logTailInformation);
        }
Example #5
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void latestLogFileContainingACheckPointAndAStartAfter()
        public virtual void LatestLogFileContainingACheckPointAndAStartAfter()
        {
            // given
            long       txId  = 35;
            StartEntry start = start();

            SetupLogFiles(LogFile(start, Commit(txId), CheckPoint(start)));

            // when
            LogTailInformation logTailInformation = _tailScanner.TailInformation;

            // then
            AssertLatestCheckPoint(true, true, txId, _endLogVersion, logTailInformation);
        }