]> source.dussan.org Git - archiva.git/commitdiff
fix unit test
authorOlivier Lamy <olamy@apache.org>
Sat, 19 May 2012 15:11:11 +0000 (15:11 +0000)
committerOlivier Lamy <olamy@apache.org>
Sat, 19 May 2012 15:11:11 +0000 (15:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1340498 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/ShowArtifactActionTest.java

index 51b9975953dc8915b08490d9bafcf408387d208f..3362730a2ebc752679e0024d7fce9970af53f22d 100644 (file)
@@ -29,6 +29,7 @@ import org.apache.archiva.metadata.model.ProjectVersionMetadata;
 import org.apache.archiva.metadata.model.ProjectVersionReference;
 import org.apache.archiva.metadata.repository.MetadataRepository;
 import org.apache.archiva.metadata.repository.RepositorySession;
+import org.apache.archiva.rest.api.model.ArtifactDownloadInfo;
 import org.apache.archiva.webtest.memory.TestMetadataResolver;
 import org.apache.archiva.webtest.memory.TestRepositorySessionFactory;
 import org.apache.archiva.metadata.repository.storage.maven2.MavenArtifactFacet;
@@ -555,15 +556,15 @@ public class ShowArtifactActionTest
     }
 
     private void assertArtifacts( List<ArtifactMetadata> expectedArtifacts,
-                                  Map<String, List<ShowArtifactAction.ArtifactDownloadInfo>> artifactMap )
+                                  Map<String, List<ArtifactDownloadInfo>> artifactMap )
     {
         // assuming only one of each version at this point
         assertEquals( expectedArtifacts.size(), artifactMap.size() );
         for ( ArtifactMetadata artifact : expectedArtifacts )
         {
             assertTrue( artifactMap.containsKey( artifact.getVersion() ) );
-            List<ShowArtifactAction.ArtifactDownloadInfo> list = artifactMap.get( artifact.getVersion() );
-            ShowArtifactAction.ArtifactDownloadInfo actual = list.get( 0 );
+            List<ArtifactDownloadInfo> list = artifactMap.get( artifact.getVersion() );
+            ArtifactDownloadInfo actual = list.get( 0 );
             assertEquals( artifact.getNamespace(), actual.getNamespace() );
             assertEquals( artifact.getId(), actual.getId() );
             assertEquals( artifact.getProject(), actual.getProject() );