Exemple #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldHanldeEmptyListOfFilesForeEachType() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldHanldeEmptyListOfFilesForeEachType()
        {
            ExpectedFiles = new StoreFileMetadata[0];
            File[]          files = _prepareStoreCopyFiles.listReplayableFiles();
            StoreResource[] atomicFilesSnapshot = _prepareStoreCopyFiles.AtomicFilesSnapshot;
            assertEquals(0, Files.Length);
            assertEquals(0, atomicFilesSnapshot.Length);
        }
Exemple #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void configureProvidedStoreCopyFiles(StoreResource[] atomicFiles, java.io.File[] files, org.eclipse.collections.api.set.primitive.LongSet indexIds, long lastCommitedTx) throws java.io.IOException
        private void ConfigureProvidedStoreCopyFiles(StoreResource[] atomicFiles, File[] files, LongSet indexIds, long lastCommitedTx)
        {
            when(_prepareStoreCopyFiles.AtomicFilesSnapshot).thenReturn(atomicFiles);
            when(_prepareStoreCopyFiles.NonAtomicIndexIds).thenReturn(indexIds);
            when(_prepareStoreCopyFiles.listReplayableFiles()).thenReturn(files);
            when(_checkPointer.lastCheckPointedTransactionId()).thenReturn(lastCommitedTx);
        }