mirror of https://github.com/apache/archiva.git
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:
parent
3deb0ee356
commit
1f60d14c48
|
@ -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() );
|
||||
|
||||
|
|
Loading…
Reference in New Issue