]> source.dussan.org Git - archiva.git/commitdiff
fix compilation of mock classes
authorOlivier Lamy <olamy@apache.org>
Wed, 2 Nov 2011 22:46:29 +0000 (22:46 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 2 Nov 2011 22:46:29 +0000 (22:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1196851 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/MockManagedRepositoryAdmin.java
archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/MockRemoteRepositoryAdmin.java

index 2883675ea644900072aae888fa58053ee2cff2b5..aed2a951029e0464bcc15d9c8b0a2765f936854e 100644 (file)
@@ -25,6 +25,7 @@ import org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin;
 import org.apache.commons.lang.StringUtils;
 import org.apache.archiva.configuration.ArchivaConfiguration;
 import org.apache.archiva.configuration.ManagedRepositoryConfiguration;
+import org.apache.maven.index.context.IndexingContext;
 
 import java.util.ArrayList;
 import java.util.List;
@@ -112,4 +113,10 @@ public class MockManagedRepositoryAdmin
     {
         this.archivaConfiguration = archivaConfiguration;
     }
+
+    public IndexingContext createIndexContext( ManagedRepository repository )
+        throws RepositoryAdminException
+    {
+        return null;
+    }
 }
index 37262610eb48b8fc6a8d68131c52ee50a7c47d55..c29906d70bd2de07dd0726de1649037618a87410 100644 (file)
@@ -23,6 +23,7 @@ import org.apache.archiva.admin.model.RepositoryAdminException;
 import org.apache.archiva.admin.model.beans.RemoteRepository;
 import org.apache.archiva.admin.model.remote.RemoteRepositoryAdmin;
 import org.apache.archiva.configuration.ArchivaConfiguration;
+import org.apache.maven.index.context.IndexingContext;
 
 import java.util.List;
 import java.util.Map;
@@ -80,4 +81,10 @@ public class MockRemoteRepositoryAdmin
     {
         this.archivaConfiguration = archivaConfiguration;
     }
+
+    public IndexingContext createIndexContext( RemoteRepository repository )
+        throws RepositoryAdminException
+    {
+        return null;
+    }
 }