From 206de319f7f38168a7249554ca0c39f70039ee00 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sat, 19 May 2012 15:11:11 +0000 Subject: [PATCH] fix unit test git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1340498 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/archiva/web/action/ShowArtifactActionTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/ShowArtifactActionTest.java b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/ShowArtifactActionTest.java index 51b997595..3362730a2 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/ShowArtifactActionTest.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/ShowArtifactActionTest.java @@ -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 expectedArtifacts, - Map> artifactMap ) + Map> 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 list = artifactMap.get( artifact.getVersion() ); - ShowArtifactAction.ArtifactDownloadInfo actual = list.get( 0 ); + List 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() ); -- 2.39.5