]> source.dussan.org Git - archiva.git/commitdiff
enforce test ordering
authorBrett Porter <brett@apache.org>
Tue, 9 Mar 2010 10:55:47 +0000 (10:55 +0000)
committerBrett Porter <brett@apache.org>
Tue, 9 Mar 2010 10:55:47 +0000 (10:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@920792 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java

index 6ee6495409e369960675251576da17b480127981..fe6a7e2780b92bc185dca76d553346ac762e55b3 100644 (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() );