public override RequestContext FlushStoresAndStreamStoreFiles(StoreWriter writer) { //JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.getName method: StoreCopyServer streamer = new StoreCopyServer(_neoStoreDataSource, _checkPointer, _fileSystem, _databaseDirectory, _monitors.newMonitor(typeof(StoreCopyServer.Monitor), typeof(StoreCopyServer).FullName)); return(streamer.FlushStoresAndStreamStoreFiles(STORE_COPY_CHECKPOINT_TRIGGER, writer, false)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void flushStoreFilesWithCorrectCheckpointTriggerName() public virtual void FlushStoreFilesWithCorrectCheckpointTriggerName() { StoreCopyServer storeCopyServer = mock(typeof(StoreCopyServer)); when(storeCopyServer.FlushStoresAndStreamStoreFiles(anyString(), any(typeof(StoreWriter)), anyBoolean())).thenReturn(RequestContext.EMPTY); BackupImpl backup = new BackupImpl(storeCopyServer, mock(typeof(LogicalTransactionStore)), mock(typeof(TransactionIdStore)), mock(typeof(LogFileInformation)), DefaultStoreIdSupplier(), NullLogProvider.Instance); backup.FullBackup(mock(typeof(StoreWriter)), false).close(); verify(storeCopyServer).flushStoresAndStreamStoreFiles(eq(BackupImpl.FULL_BACKUP_CHECKPOINT_TRIGGER), any(typeof(StoreWriter)), eq(false)); }