}
public void testDeleteRepositoryGroupConfirmation()
throws Exception
{
RepositoryGroupConfiguration origRepoGroup = createRepositoryGroup();
Configuration configuration = createConfigurationForEditing( origRepoGroup );
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( configuration );
archivaConfigurationControl.replay();
action.setRepoGroupId( REPO_GROUP_ID );
action.prepare();
assertEquals( REPO_GROUP_ID, action.getRepoGroupId() );
RepositoryGroupConfiguration repoGroup = action.getRepositoryGroup();
assertNotNull( repoGroup );
assertEquals( repoGroup.getId(), action.getRepoGroupId() );
assertEquals( Collections.singletonList( origRepoGroup ), configuration.getRepositoryGroups() );
}