archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r892774 - /archiva/branches/MRM-1025/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/ShowArtifactActionTest.java
Date Mon, 21 Dec 2009 11:42:48 GMT
Author: brett
Date: Mon Dec 21 11:42:47 2009
New Revision: 892774

URL: http://svn.apache.org/viewvc?rev=892774&view=rev
Log:
[MRM-1285][MRM-404] improve appearance of the downloads box and correct handling of snapshots

Modified:
    archiva/branches/MRM-1025/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/ShowArtifactActionTest.java

Modified: archiva/branches/MRM-1025/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/ShowArtifactActionTest.java
URL: http://svn.apache.org/viewvc/archiva/branches/MRM-1025/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/ShowArtifactActionTest.java?rev=892774&r1=892773&r2=892774&view=diff
==============================================================================
--- archiva/branches/MRM-1025/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/ShowArtifactActionTest.java
(original)
+++ archiva/branches/MRM-1025/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/maven/archiva/web/action/ShowArtifactActionTest.java
Mon Dec 21 11:42:47 2009
@@ -380,10 +380,9 @@
             assertEquals( artifact.getId(), actual.getId() );
             assertEquals( artifact.getProject(), actual.getProject() );
             assertEquals( artifact.getRepositoryId(), actual.getRepositoryId() );
-            assertEquals( artifact.getSize(), actual.getSize() );
             assertEquals( artifact.getVersion(), actual.getVersion() );
             assertEquals( TEST_TYPE, actual.getType() );
-            assertEquals( TEST_SIZE, actual.getSize() );
+            assertEquals( "12.06 K", actual.getSize() );
             assertEquals( artifact.getNamespace() + "/" + artifact.getProject() + "/" + TEST_SNAPSHOT_VERSION
+ "/" +
                 artifact.getId(), actual.getPath() );
         }



Mime
View raw message