@Test public void removeBackup_success() throws BackupException { backupUploadService.removeBackup(UNIQUE_FILE_NAME); verify(backupUploaderMock).doRemoveBackup(eq(UNIQUE_FILE_NAME)); }
@Override public void removeBackup(String fileName) { try { backupUploader.doRemoveBackup(fileName); log.debug("sopInstanceUID={}, removeBackup successful.", fileName); } catch (IOException ex) { MonitoringService.addEvent(Event.CSTORE_BACKUP_ERROR); log.error("sopInstanceUID={}, removeBackup failed.", fileName, ex); } }
BackupUploadService implements IBackupUploadService { @Override public void removeBackup(String fileName) { try { backupUploader.doRemoveBackup(fileName); log.debug("sopInstanceUID={}, removeBackup successful.", fileName); } catch (IOException ex) { MonitoringService.addEvent(Event.CSTORE_BACKUP_ERROR); log.error("sopInstanceUID={}, removeBackup failed.", fileName, ex); } } }
BackupUploadService implements IBackupUploadService { @Override public void removeBackup(String fileName) { try { backupUploader.doRemoveBackup(fileName); log.debug("sopInstanceUID={}, removeBackup successful.", fileName); } catch (IOException ex) { MonitoringService.addEvent(Event.CSTORE_BACKUP_ERROR); log.error("sopInstanceUID={}, removeBackup failed.", fileName, ex); } } BackupUploadService(IBackupUploader backupUploader, BackupFlags backupFlags, DelayCalculator delayCalculator); }
BackupUploadService implements IBackupUploadService { @Override public void removeBackup(String fileName) { try { backupUploader.doRemoveBackup(fileName); log.debug("sopInstanceUID={}, removeBackup successful.", fileName); } catch (IOException ex) { MonitoringService.addEvent(Event.CSTORE_BACKUP_ERROR); log.error("sopInstanceUID={}, removeBackup failed.", fileName, ex); } } BackupUploadService(IBackupUploader backupUploader, BackupFlags backupFlags, DelayCalculator delayCalculator); @Override BackupState createBackup(InputStream inputStream, String uniqueFileName); @Override InputStream getBackupStream(String uniqueFileName); @Override void startUploading(IDicomWebClient webClient, BackupState backupState); @Override void removeBackup(String fileName); boolean filterHttpCode(Integer actualHttpStatus); }
BackupUploadService implements IBackupUploadService { @Override public void removeBackup(String fileName) { try { backupUploader.doRemoveBackup(fileName); log.debug("sopInstanceUID={}, removeBackup successful.", fileName); } catch (IOException ex) { MonitoringService.addEvent(Event.CSTORE_BACKUP_ERROR); log.error("sopInstanceUID={}, removeBackup failed.", fileName, ex); } } BackupUploadService(IBackupUploader backupUploader, BackupFlags backupFlags, DelayCalculator delayCalculator); @Override BackupState createBackup(InputStream inputStream, String uniqueFileName); @Override InputStream getBackupStream(String uniqueFileName); @Override void startUploading(IDicomWebClient webClient, BackupState backupState); @Override void removeBackup(String fileName); boolean filterHttpCode(Integer actualHttpStatus);  }