[MRM-1321] Snapshot is linking to oldest version in Archiva GUI

submitted by Daniel Triphaus
o do not reverse the order of the list containing the snapshot versions

additional change made:
o updated unit test to correct behavior


git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-1.3.x@930242 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maria Odea B. Ching 2010-04-02 11:18:43 +00:00
parent 508678bf33
commit 7d72f9f75e
2 changed files with 1 additions and 2 deletions

View File

@ -343,7 +343,6 @@ public class DefaultRepositoryBrowsing
{
final List<String> versions = (List<String>) dao.query( new UniqueVersionConstraint( groupId, artifactId ) );
Collections.sort( versions );
Collections.reverse( versions );
for ( String uniqueVersion : versions )
{

View File

@ -189,7 +189,7 @@ public class RepositoryBrowsingTest
assertNotNull( "Artifact should not be null.", artifact );
assertEquals( "org.apache.archiva", artifact.getGroupId() );
assertEquals( "archiva-indexer", artifact.getArtifactId() );
assertEquals( "1.0-20070522.143249-1", artifact.getVersion() );
assertEquals( "1.0-20070522.153141-2", artifact.getVersion() );
assertEquals( "jar", artifact.getPackaging() );
String repoId = browser.getRepositoryId( USER_GUEST, GUEST_REPO_IDS, "org.apache.archiva", "archiva-indexer", "1.0-SNAPSHOT" );