more fix junit due to ArrayList init mock call number changed

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1229368 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-01-09 21:46:25 +00:00
parent 609db54fef
commit 79d7b163de
3 changed files with 14 additions and 16 deletions

View File

@ -81,7 +81,7 @@ public class DeleteRepositoryGroupActionTest
Configuration configuration = createConfigurationForEditing( origRepoGroup );
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( configuration );
archivaConfigurationControl.setReturnValue( configuration, 2 );
archivaConfigurationControl.replay();
action.setRepoGroupId( REPO_GROUP_ID );
@ -100,7 +100,7 @@ public class DeleteRepositoryGroupActionTest
Configuration configuration = createConfigurationForEditing( createRepositoryGroup() );
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( configuration, 5 );
archivaConfigurationControl.setReturnValue( configuration, 7 );
archivaConfiguration.save( configuration );
archivaConfigurationControl.replay();
@ -125,7 +125,7 @@ public class DeleteRepositoryGroupActionTest
Configuration configuration = createConfigurationForEditing( origRepoGroup );
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( configuration, 2 );
archivaConfigurationControl.setReturnValue( configuration, 4 );
archivaConfiguration.save( configuration );
archivaConfigurationControl.replay();

View File

@ -74,9 +74,7 @@ public class EditRemoteRepositoryActionTest
{
Configuration configuration = createConfigurationForEditing( createRepository() );
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( configuration );
archivaConfigurationControl.setReturnValue( configuration );
archivaConfigurationControl.setReturnValue( configuration );
archivaConfigurationControl.setReturnValue( configuration, 4, 6 );
archivaConfiguration.save( configuration );
archivaConfigurationControl.replay();
@ -106,7 +104,7 @@ public class EditRemoteRepositoryActionTest
Configuration configuration = createConfigurationForEditing( createRepository() );
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( configuration );
archivaConfigurationControl.setReturnValue( configuration, 2 );
archivaConfigurationControl.replay();
action.setRepoid( REPO_ID );

View File

@ -76,7 +76,7 @@ public class RepositoryGroupsActionTest
throws SecureActionException, RepositoryAdminException
{
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( new Configuration(), 3 );
archivaConfigurationControl.setReturnValue( new Configuration(), 3, 5 );
archivaConfigurationControl.replay();
action.prepare();
@ -90,7 +90,7 @@ public class RepositoryGroupsActionTest
{
Configuration configuration = new Configuration();
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( configuration, 6 );
archivaConfigurationControl.setReturnValue( configuration, 6, 8 );
archivaConfiguration.save( configuration );
archivaConfigurationControl.replay();
@ -113,7 +113,7 @@ public class RepositoryGroupsActionTest
{
Configuration configuration = new Configuration();
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( configuration, 5 );
archivaConfigurationControl.setReturnValue( configuration, 5, 7 );
archivaConfiguration.save( configuration );
@ -132,7 +132,7 @@ public class RepositoryGroupsActionTest
{
Configuration configuration = new Configuration();
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( configuration, 8 );
archivaConfigurationControl.setReturnValue( configuration, 10, 12 );
archivaConfiguration.save( configuration );
@ -165,7 +165,7 @@ public class RepositoryGroupsActionTest
Configuration configuration = createInitialConfiguration();
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( configuration, 6 );
archivaConfigurationControl.setReturnValue( configuration, 6, 8 );
archivaConfigurationControl.replay();
action.setServletRequest( sc.newInvocation( "http://localhost/admin/repositoryGroups.action" ).getRequest() );
@ -197,7 +197,7 @@ public class RepositoryGroupsActionTest
Configuration configuration = createInitialConfiguration();
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( configuration, 17 );
archivaConfigurationControl.setReturnValue( configuration, 20, 24 );
archivaConfiguration.save( configuration );
archivaConfigurationControl.replay();
@ -246,7 +246,7 @@ public class RepositoryGroupsActionTest
Configuration configuration = createInitialConfiguration();
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( configuration, 13 );
archivaConfigurationControl.setReturnValue( configuration, 19, 22 );
archivaConfiguration.save( configuration );
archivaConfigurationControl.replay();
@ -297,7 +297,7 @@ public class RepositoryGroupsActionTest
Configuration configuration = createInitialConfiguration();
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( configuration, 6 );
archivaConfigurationControl.setReturnValue( configuration, 6, 10 );
archivaConfiguration.save( configuration );
archivaConfigurationControl.replay();
@ -333,7 +333,7 @@ public class RepositoryGroupsActionTest
Configuration configuration = createInitialConfiguration();
archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( configuration, 6 );
archivaConfigurationControl.setReturnValue( configuration, 6, 10 );
archivaConfiguration.save( configuration );
archivaConfigurationControl.replay();