mirror of https://github.com/apache/archiva.git
[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:
parent
508678bf33
commit
7d72f9f75e
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -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" );
|
||||
|
|
Loading…
Reference in New Issue