enforce test ordering

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@920792 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2010-03-09 10:55:47 +00:00
parent 3deb0ee356
commit 1f60d14c48
1 changed files with 7 additions and 0 deletions

View File

@ -140,6 +140,13 @@ public class Maven2RepositoryMetadataResolverTest
Collection<ArtifactMetadata> springArtifacts = resolver.getArtifacts( TEST_REPO_ID, "org.codehaus.plexus",
"plexus-spring", "1.2" );
List<ArtifactMetadata> artifacts = new ArrayList<ArtifactMetadata>( springArtifacts );
Collections.sort( artifacts, new Comparator<ArtifactMetadata>()
{
public int compare( ArtifactMetadata o1, ArtifactMetadata o2 )
{
return o1.getId().compareTo( o2.getId() );
}
} );
assertEquals( 3, artifacts.size() );