From e2f5e24bf01aaf1e725d6a0270e89bbe20d73979 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Thu, 11 Mar 2010 11:36:00 +0000 Subject: [PATCH] fix test git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@921806 13f79535-47bb-0310-9956-ffa450edef68 --- .../repository/stats/RepositoryStatisticsManagerTest.java | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.39.5