public void testGetNextNameRDBMSBackup() throws Exception
{
tempDir = new File("target" + File.separator + "temp" + File.separator + "fileProduser2");
tempDir.mkdirs();
FileNameProducer nameProducer =
new FileNameProducer(backupsetName, tempDir.getAbsolutePath(), calendar, true, true);
File file = nameProducer.getNextFile();
assertTrue(file.isDirectory());
assertTrue(file.getName().endsWith(".0"));
nameProducer = new FileNameProducer(backupsetName, tempDir.getAbsolutePath(), calendar, false, false);
file = nameProducer.getNextFile();
assertTrue(file.isFile());
assertTrue(file.getName().endsWith(".1"));
assertTrue(nameProducer.getNextFile().getName().endsWith(".2"));
assertTrue(nameProducer.getNextFile().getName().endsWith(".3"));
}