mirror of https://github.com/apache/archiva.git
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:
parent
e92fede155
commit
3c0ed32a13
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue