assertTrue(new File(url.getFile(), "dump-len.zip").exists());
}
public void testRDBMSFullBackupJob() throws Exception
{
FullBackupJob job = new FullBackupJob();
BackupConfig config = new BackupConfig();
config.setRepository("db1");
config.setWorkspace("ws1");
config.setBackupDir(new File("target/backup/testJob"));
Calendar calendar = Calendar.getInstance();
job.init(repositoryService.getRepository("db1"), "ws1", config, calendar);
job.run();
URL url = job.getStorageURL();
assertNotNull(url);
assertFalse(new File(url.getFile(), "values-draft.zip").exists());
assertTrue(new File(url.getFile(), "index.zip").exists());
assertFalse(new File(url.getFile(), "index_system.zip").exists());