diff options
author | Brett Porter <brett@apache.org> | 2009-12-16 06:18:33 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2009-12-16 06:18:33 +0000 |
commit | 966d79546dead099458a0de695c3185bc364e54c (patch) | |
tree | e041d8591290322dce95d48d764931eab86230c3 /archiva-modules/plugins/repository-statistics | |
parent | 7e6661a58a7ebad937d95be62c25e22a20d1d117 (diff) | |
download | archiva-966d79546dead099458a0de695c3185bc364e54c.tar.gz archiva-966d79546dead099458a0de695c3185bc364e54c.zip |
[MRM-1025] remove artifact deletion and update consumer. remove archiva-database module
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@891130 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins/repository-statistics')
-rw-r--r-- | archiva-modules/plugins/repository-statistics/src/test/java/org/apache/archiva/metadata/repository/stats/RepositoryStatisticsManagerTest.java | 14 |
1 files changed, 8 insertions, 6 deletions
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 bb050b503..e4da83773 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 @@ -456,6 +456,8 @@ public class RepositoryStatisticsManagerTest stats.setTotalProjectCount( 5 ); stats.setTotalGroupCount( 4 ); stats.setTotalFileCount( 56345 ); + stats.setTotalCountForType( "jar", 10 ); + stats.setTotalCountForType( "pom", 10 ); return stats; } @@ -513,13 +515,13 @@ public class RepositoryStatisticsManagerTest Arrays.asList( "1.3-SNAPSHOT", "1.3" ) ); metadataRepositoryControl.expectAndReturn( metadataRepository.getArtifacts( TEST_REPO_ID, "org.apache.archiva", "metadata-model", "1.3-SNAPSHOT" ), - Arrays.asList( createArtifact( "org.apache.archiva", "metadata-repository-api", "1.3-SNAPSHOT", "jar" ), - createArtifact( "org.apache.archiva", "metadata-repository-api", "1.3-SNAPSHOT", + Arrays.asList( createArtifact( "org.apache.archiva", "metadata-model", "1.3-SNAPSHOT", "jar" ), + createArtifact( "org.apache.archiva", "metadata-model", "1.3-SNAPSHOT", "pom" ) ) ); metadataRepositoryControl.expectAndReturn( metadataRepository.getArtifacts( TEST_REPO_ID, "org.apache.archiva", "metadata-model", "1.3" ), - Arrays.asList( createArtifact( "org.apache.archiva", "metadata-repository-api", "1.3", "jar" ), - createArtifact( "org.apache.archiva", "metadata-repository-api", "1.3", "pom" ) ) ); + Arrays.asList( createArtifact( "org.apache.archiva", "metadata-model", "1.3", "jar" ), + createArtifact( "org.apache.archiva", "metadata-model", "1.3", "pom" ) ) ); metadataRepositoryControl.expectAndReturn( metadataRepository.getNamespaces( TEST_REPO_ID, "org.apache.maven" ), Arrays.asList() ); metadataRepositoryControl.expectAndReturn( @@ -529,8 +531,8 @@ public class RepositoryStatisticsManagerTest Arrays.asList( "2.2.1" ) ); metadataRepositoryControl.expectAndReturn( metadataRepository.getArtifacts( TEST_REPO_ID, "org.apache.maven", "maven-model", "2.2.1" ), - Arrays.asList( createArtifact( "org.apache.archiva", "metadata-repository-api", "2.2.1", "jar" ), - createArtifact( "org.apache.archiva", "metadata-repository-api", "2.2.1", "pom" ) ) ); + Arrays.asList( createArtifact( "org.apache.archiva", "maven-model", "2.2.1", "jar" ), + createArtifact( "org.apache.archiva", "maven-model", "2.2.1", "pom" ) ) ); metadataRepositoryControl.expectAndReturn( metadataRepository.getNamespaces( TEST_REPO_ID, "org.codehaus" ), Arrays.asList( "plexus" ) ); metadataRepositoryControl.expectAndReturn( metadataRepository.getProjects( TEST_REPO_ID, "org" ), |