fix compilation of mock classes

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1196851 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-11-02 22:46:29 +00:00
parent 39ee36e14c
commit a07c5782b4
2 changed files with 14 additions and 0 deletions

View 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;
}
}

View 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;
}
}