aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins/repository-statistics
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2009-12-17 02:00:27 +0000
committerBrett Porter <brett@apache.org>2009-12-17 02:00:27 +0000
commit62e051806eacd5e108734845cf040c479a2037d8 (patch)
tree14e179ddc8cf442203ebdf7a0c5a34eab7eb516e /archiva-modules/plugins/repository-statistics
parentbc6ca302ad23df8932bd72bf99b4f9d1c14155f8 (diff)
downloadarchiva-62e051806eacd5e108734845cf040c479a2037d8.tar.gz
archiva-62e051806eacd5e108734845cf040c479a2037d8.zip
[MRM-1293] align the documented content model to the implementation for the statistics nodes
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@891520 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins/repository-statistics')
-rw-r--r--archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/RepositoryStatistics.java2
-rw-r--r--archiva-modules/plugins/repository-statistics/src/test/java/org/apache/archiva/metadata/repository/stats/RepositoryStatisticsManagerTest.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/RepositoryStatistics.java b/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/RepositoryStatistics.java
index 735818ce5..79678ac3d 100644
--- a/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/RepositoryStatistics.java
+++ b/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/RepositoryStatistics.java
@@ -48,7 +48,7 @@ public class RepositoryStatistics
public static String FACET_ID = "org.apache.archiva.metadata.repository.stats";
- static final DateFormat SCAN_TIMESTAMP = new SimpleDateFormat( "yyyyMMdd.HHmmss.SSS" );
+ static final DateFormat SCAN_TIMESTAMP = new SimpleDateFormat( "yyyy/MM/dd/HHmmss.SSS" );
private Map<String, Long> totalCountForType = new HashMap<String, Long>();
diff --git a/archiva-modules/plugins/repository-statistics/src/test/java/org/apache/archiva/metadata/repository/stats/RepositoryStatisticsManagerTest.java b/archiva-modules/plugins/repository-statistics/src/test/java/org/apache/archiva/metadata/repository/stats/RepositoryStatisticsManagerTest.java
index e4da83773..09ec07907 100644
--- a/archiva-modules/plugins/repository-statistics/src/test/java/org/apache/archiva/metadata/repository/stats/RepositoryStatisticsManagerTest.java
+++ b/archiva-modules/plugins/repository-statistics/src/test/java/org/apache/archiva/metadata/repository/stats/RepositoryStatisticsManagerTest.java
@@ -48,9 +48,9 @@ public class RepositoryStatisticsManagerTest
private MetadataRepository metadataRepository;
- private static final String FIRST_TEST_SCAN = "20091201.123456.789";
+ private static final String FIRST_TEST_SCAN = "2009/12/01/123456.789";
- private static final String SECOND_TEST_SCAN = "20091202.012345.678";
+ private static final String SECOND_TEST_SCAN = "2009/12/02/012345.678";
private Map<String, RepositoryStatistics> statsCreated = new LinkedHashMap<String, RepositoryStatistics>();