From: Olivier Lamy Date: Wed, 2 Nov 2011 22:46:29 +0000 (+0000) Subject: fix compilation of mock classes X-Git-Tag: archiva-1.4-M2~177 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a07c5782b4dbe41e5f0df2b5bc041442d597c7dd;p=archiva.git fix compilation of mock classes git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1196851 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/MockManagedRepositoryAdmin.java b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/MockManagedRepositoryAdmin.java index 2883675ea..aed2a9510 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/MockManagedRepositoryAdmin.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/MockManagedRepositoryAdmin.java @@ -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; + } } diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/MockRemoteRepositoryAdmin.java b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/MockRemoteRepositoryAdmin.java index 37262610e..c29906d70 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/MockRemoteRepositoryAdmin.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/MockRemoteRepositoryAdmin.java @@ -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; + } }