fix mock RepositoryStatisticsManager compilation

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1423880 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-19 15:21:34 +00:00
parent e92fede155
commit 3c0ed32a13
1 changed files with 8 additions and 1 deletions

View File

@ -20,6 +20,7 @@ package org.apache.archiva.scheduler.repository;
*/
import org.apache.archiva.metadata.repository.MetadataRepository;
import org.apache.archiva.metadata.repository.MetadataRepositoryException;
import org.apache.archiva.metadata.repository.stats.RepositoryStatistics;
import org.apache.archiva.metadata.repository.stats.RepositoryStatisticsManager;
import org.springframework.stereotype.Service;
@ -36,6 +37,12 @@ public class TestRepositoryStatisticsManager
{
private Map<String, List<RepositoryStatistics>> repoStats = new HashMap<String, List<RepositoryStatistics>>();
public boolean hasStatistics( MetadataRepository metadataRepository, String repositoryId )
throws MetadataRepositoryException
{
return !repoStats.isEmpty();
}
public RepositoryStatistics getLastStatistics( MetadataRepository metadataRepository, String repositoryId )
{
List<RepositoryStatistics> repositoryStatisticsList = getStatsList( repositoryId );