]> source.dussan.org Git - archiva.git/commitdiff
fix test
authorBrett Porter <brett@apache.org>
Thu, 11 Mar 2010 11:36:00 +0000 (11:36 +0000)
committerBrett Porter <brett@apache.org>
Thu, 11 Mar 2010 11:36:00 +0000 (11:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@921806 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/plugins/repository-statistics/src/test/java/org/apache/archiva/metadata/repository/stats/RepositoryStatisticsManagerTest.java

index a5ce803135acb65cfc81e9b544831195f74f37a8..2ca912e415d77544fc30eb5437f6cbd26f856777 100644 (file)
@@ -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;
     }