archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r920792 - /archiva/trunk/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java
Date Tue, 09 Mar 2010 10:55:48 GMT
Author: brett
Date: Tue Mar  9 10:55:47 2010
New Revision: 920792

URL: http://svn.apache.org/viewvc?rev=920792&view=rev
Log:
enforce test ordering

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

Modified: archiva/trunk/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java?rev=920792&r1=920791&r2=920792&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java
(original)
+++ archiva/trunk/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java
Tue Mar  9 10:55:47 2010
@@ -140,6 +140,13 @@ public class Maven2RepositoryMetadataRes
         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() );
 



Mime
View raw message