}
// check 10 backup files
- HashMap correctindexmap = new HashMap();
+ HashMap<Integer, String> correctindexmap = new HashMap<>();
correctindexmap.put(1, "backupfilestestTemp.fa_BACKUPTEST-00000001");
correctindexmap.put(2, "backupfilestestTemp.fa_BACKUPTEST-00000002");
correctindexmap.put(3, "backupfilestestTemp.fa_BACKUPTEST-00000003");
correctindexmap.put(8, "backupfilestestTemp.fa_BACKUPTEST-00000008");
correctindexmap.put(9, "backupfilestestTemp.fa_BACKUPTEST-00000009");
correctindexmap.put(10, "backupfilestestTemp.fa_BACKUPTEST-00000010");
- HashMap wrongindexmap = new HashMap();
+ HashMap<Integer, String> wrongindexmap = new HashMap<>();
wrongindexmap.put(1, "backupfilestestTemp.fa_BACKUPTEST-1");
wrongindexmap.put(2, "backupfilestestTemp.fa_BACKUPTEST-00000002");
wrongindexmap.put(3, "backupfilestestTemp.fa_BACKUPTEST-00000003");
// check there are "rollMax" backup files and they are all saved correctly
// check 10 backup files
- HashMap correctindexmap = new HashMap();
+ HashMap<Integer, String> correctindexmap = new HashMap<>();
correctindexmap.put(9, "backupfilestestTemp.fa_BACKUPTEST-00000009");
correctindexmap.put(10, "backupfilestestTemp.fa_BACKUPTEST-00000010");
int[] indexes2 = { 10 };
// check there are "rollMax" backup files and they are all saved correctly
// check 10 backup files
- HashMap correctindexmap = new HashMap();
+ HashMap<Integer, String> correctindexmap = new HashMap<>();
correctindexmap.put(1, "backupfilestestTemp.fa_BACKUPTEST-00000001");
correctindexmap.put(2, "backupfilestestTemp.fa_BACKUPTEST-00000002");
int[] indexes2 = { 1 };
{
Cache.loadProperties("test/jalview/io/testProps.jvprops");
+ BackupFilesPresetEntry bfpe = new BackupFilesPresetEntry(suffix, digits,
+ reverse, noMax, rollMax, false);
+
+ Cache.applicationProperties.setProperty(BackupFiles.ENABLED,
+ Boolean.toString(enabled));
+ Cache.applicationProperties.setProperty(
+ BackupFilesPresetEntry.SAVEDCONFIG, bfpe.toString());
+ /*
Cache.applicationProperties.setProperty(BackupFiles.ENABLED,
Boolean.toString(enabled));
Cache.applicationProperties.setProperty(BackupFiles.SUFFIX, suffix);
Integer.toString(rollMax));
Cache.applicationProperties.setProperty(BackupFiles.CONFIRM_DELETE_OLD,
"false");
+ */
}
private void save()