From: Brett Porter Date: Thu, 11 Mar 2010 11:36:00 +0000 (+0000) Subject: fix test X-Git-Tag: archiva-1.4-M1~974 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e2f5e24bf01aaf1e725d6a0270e89bbe20d73979;p=archiva.git fix test git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@921806 13f79535-47bb-0310-9956-ffa450edef68 --- 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 a5ce80313..2ca912e41 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 @@ -22,6 +22,7 @@ package org.apache.archiva.metadata.repository.stats; import junit.framework.TestCase; import org.apache.archiva.metadata.model.ArtifactMetadata; import org.apache.archiva.metadata.repository.MetadataRepository; +import org.apache.archiva.metadata.repository.storage.maven2.MavenArtifactFacet; import org.easymock.MockControl; import java.text.ParseException; @@ -438,6 +439,11 @@ public class RepositoryStatisticsManagerTest metadata.setSize( 12345L ); metadata.setVersion( projectVersion ); metadata.setNamespace( namespace ); + + MavenArtifactFacet facet = new MavenArtifactFacet(); + facet.setType( type ); + metadata.addFacet( facet ); + return metadata; }