]> source.dussan.org Git - archiva.git/commitdiff
more fix junit due to ArrayList init mock call number changed
authorOlivier Lamy <olamy@apache.org>
Mon, 9 Jan 2012 21:46:25 +0000 (21:46 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 9 Jan 2012 21:46:25 +0000 (21:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1229368 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/repositories/DeleteRepositoryGroupActionTest.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/repositories/EditRemoteRepositoryActionTest.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/repositories/RepositoryGroupsActionTest.java

index faa2c78754d09627d53249ab9f73670daa86ce7c..cce27b900997e50e1417a9506c2f28f13f94d5e9 100644 (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();
index 961d2ba5272232ec2c4249b2b1bf40506e51eb98..37d7274687cac47fa315b1497417c5bf40d2a338 100644 (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 );
index 655fa7ba9bb04a28873186fd8674fe7f73699baf..80c64ba852dfa2c886798135faf478336d4a2079 100644 (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();