Configuration dcc = cacheManager.getCacheConfiguration("noBackupFor2");
assertEquals(0, dcc.sites().allBackups().size());
}
private void testDefault(Configuration dcc) {
BackupConfiguration nyc = new BackupConfiguration("NYC", BackupConfiguration.BackupStrategy.SYNC,
12003l, BackupFailurePolicy.IGNORE, null, false,
DEFAULT_TAKE_OFFLINE, DEFAULT_STATE_TRANSFER, true);
BackupConfiguration sfo = new BackupConfiguration("SFO", BackupConfiguration.BackupStrategy.ASYNC,
10000l, BackupFailurePolicy.WARN, null, false,
DEFAULT_TAKE_OFFLINE, DEFAULT_STATE_TRANSFER, true);
BackupConfiguration lon = new BackupConfiguration("LON", BackupConfiguration.BackupStrategy.SYNC,
10000l, BackupFailurePolicy.WARN, null, false,
DEFAULT_TAKE_OFFLINE, DEFAULT_STATE_TRANSFER, false);
assertTrue(dcc.sites().allBackups().contains(nyc));
assertTrue(dcc.sites().allBackups().contains(sfo));
assertTrue(dcc.sites().allBackups().contains(lon));