}
public void testDirectoryPurgeConfiguration()
throws Exception
{
DirectoryPurgeConfiguration dirConfig = new DirectoryPurgeConfiguration();
dirConfig.setLocation( getReleasesDirectoryLocation().getAbsolutePath() );
dirConfig.setDirectoryType( TEST_RELEASES_DIRECTORY_TYPE );
dirConfig.setDaysOlder( TEST_DAYS_OLDER );
dirConfig.setRetentionCount( TEST_RETENTION_COUNT );
dirConfig = purgeConfigurationService.addDirectoryPurgeConfiguration( dirConfig );
assertNotNull( dirConfig );
DirectoryPurgeConfiguration retrieved = directoryPurgeConfigurationDao.getDirectoryPurgeConfiguration(
dirConfig.getId() );
assertEquals( dirConfig, retrieved );
dirConfig.setDirectoryType( TEST_BUILDOUTPUT_DIRECTORY_TYPE );
purgeConfigurationService.updateDirectoryPurgeConfiguration( dirConfig );