@Test public void convertSingleBackup() { Backup backup = backupConverter.convert(new BackupFile(BACKUP_FILE_1)); assertEquals(BACKUP_FILE_1, backup.getFilename()); }
public Backup convert(BackupFile backupFile) { Backup backup = new Backup(); backup.setFilename(backupFile.getFilename()); backup.setCreatedAt(backupFile.getCreatedAt()); return backup; }
BackupConverter { public Backup convert(BackupFile backupFile) { Backup backup = new Backup(); backup.setFilename(backupFile.getFilename()); backup.setCreatedAt(backupFile.getCreatedAt()); return backup; } }
BackupConverter { public Backup convert(BackupFile backupFile) { Backup backup = new Backup(); backup.setFilename(backupFile.getFilename()); backup.setCreatedAt(backupFile.getCreatedAt()); return backup; }  }
BackupConverter { public Backup convert(BackupFile backupFile) { Backup backup = new Backup(); backup.setFilename(backupFile.getFilename()); backup.setCreatedAt(backupFile.getCreatedAt()); return backup; }  Backup convert(BackupFile backupFile); List<Backup> convert(Iterable<BackupFile> files); }
BackupConverter { public Backup convert(BackupFile backupFile) { Backup backup = new Backup(); backup.setFilename(backupFile.getFilename()); backup.setCreatedAt(backupFile.getCreatedAt()); return backup; }  Backup convert(BackupFile backupFile); List<Backup> convert(Iterable<BackupFile> files);  }