This object is not serialized to the Database.
</description>
<fields>
- <!-- TODO! check it -->
+ <!-- Note: these are only managed repositories. This should be reviewed as to whether they are still needed -->
<field>
<name>repositories</name>
<version>1.0.0+</version>
The Name of the repository.
</description>
</field>
- <!-- TODO! check it -->
<field stash.maxSize="250">
<name>url</name>
<identifier>false</identifier>
public void testDeleteRemoteRepositoryKeepContent()
throws RegistryException, IndeterminateConfigurationException
{
- Configuration configuration = executeDeletionTest( "delete-entry", createRepository() );
+ Configuration configuration = executeDeletionTest( createRepository() );
assertTrue( configuration.getRemoteRepositories().isEmpty() );
}
archivaConfigurationControl.replay();
action.setRepoid( REPO_ID );
- action.setMode( "unmodified" ); // TODO! remove
action.prepare();
assertEquals( REPO_ID, action.getRepoid() );
- assertEquals( "unmodified", action.getMode() );
RemoteRepositoryConfiguration repositoryConfiguration = action.getRepository();
assertNotNull( repositoryConfiguration );
assertRepositoryEquals( repositoryConfiguration, createRepository() );
assertEquals( Collections.singletonList( originalRepository ), configuration.getRemoteRepositories() );
}
- private Configuration executeDeletionTest( String mode, RemoteRepositoryConfiguration originalRepository )
+ private Configuration executeDeletionTest( RemoteRepositoryConfiguration originalRepository )
throws RegistryException, IndeterminateConfigurationException
{
Configuration configuration = createConfigurationForEditing( originalRepository );
archivaConfigurationControl.replay();
action.setRepoid( REPO_ID );
- action.setMode( mode ); // TODO! remove
action.prepare();
assertEquals( REPO_ID, action.getRepoid() );
- assertEquals( mode, action.getMode() );
RemoteRepositoryConfiguration repository = action.getRepository();
assertNotNull( repository );
assertRepositoryEquals( repository, createRepository() );
Configuration c = configuration.getConfiguration();
c.removeManagedRepository( c.findManagedRepositoryById( REPOSITORY_ID ) );
- // TODO! it would be better to use a mock configuration and "save" to more accurately reflect the calls made
+ // TODO it would be better to use a mock configuration and "save" to more accurately reflect the calls made
triggerConfigurationChange( servlet, "managedRepositories.managedRepository(0).id", REPOSITORY_ID );
ManagedRepositoryConfiguration repository = servlet.getRepository( REPOSITORY_ID );
repo.setId( NEW_REPOSITORY_ID );
repo.setName( NEW_REPOSITORY_NAME );
c.addManagedRepository( repo );
- // TODO! it would be better to use a mock configuration and "save" to more accurately reflect the calls made
+ // TODO it would be better to use a mock configuration and "save" to more accurately reflect the calls made
triggerConfigurationChange( servlet, "managedRepositories.managedRepository(2).id", NEW_REPOSITORY_ID );
ManagedRepositoryConfiguration repository = servlet.getRepository( NEW_REPOSITORY_ID );