From a07c5782b4dbe41e5f0df2b5bc041442d597c7dd Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 2 Nov 2011 22:46:29 +0000 Subject: [PATCH] fix compilation of mock classes git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1196851 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/archiva/mock/MockManagedRepositoryAdmin.java | 7 +++++++ .../org/apache/archiva/mock/MockRemoteRepositoryAdmin.java | 7 +++++++ 2 files changed, 14 insertions(+) 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; + } } -- 2.39.5