summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-scheduler
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2009-12-07 23:27:58 +0000
committerBrett Porter <brett@apache.org>2009-12-07 23:27:58 +0000
commit1dad23aaf3d3a6fa10876a2363169b76b52608b9 (patch)
tree8da4c014f06efa774e23c1404f8e3b0dde65a2a5 /archiva-modules/archiva-scheduler
parent7c7fffc71c4c2546c8e5aacb933bea9fd1c8ffa7 (diff)
downloadarchiva-1dad23aaf3d3a6fa10876a2363169b76b52608b9.tar.gz
archiva-1dad23aaf3d3a6fa10876a2363169b76b52608b9.zip
[MRM-1293] adjust the EditManagedRepositoryAction to delete statistics when the repository location changes.
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@888185 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-scheduler')
-rw-r--r--archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/scheduler/repository/TestRepositoryStatisticsManager.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/scheduler/repository/TestRepositoryStatisticsManager.java b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/scheduler/repository/TestRepositoryStatisticsManager.java
index 7c2939b8e..470a5f998 100644
--- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/scheduler/repository/TestRepositoryStatisticsManager.java
+++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/scheduler/repository/TestRepositoryStatisticsManager.java
@@ -46,6 +46,11 @@ public class TestRepositoryStatisticsManager
stats.add( repositoryStatistics );
}
+ public void deleteStatistics( String repositoryId )
+ {
+ repoStats.remove( repositoryId );
+ }
+
private List<RepositoryStatistics> getStatsList( String repositoryId )
{
List<RepositoryStatistics> stats = repoStats.get( repositoryId );