From 22b4d0ee5f8a4c6f3550b03e2abb816c4e7d13e7 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Sun, 24 May 2009 13:35:29 +0000 Subject: [PATCH] o Fixed artifact resolver to deliver root artifact first to retain class path order (intermediate update to test, the legacy method being called shouldn't contain the root artifact at all IIRC so needs some investigation) git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@778146 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/artifact/resolver/ArtifactResolverTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java b/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java index e4de29e9a4..3197fb8123 100644 --- a/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java +++ b/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java @@ -231,6 +231,7 @@ public class ArtifactResolverTest artifactResolver.resolveTransitively( set, projectArtifact, remoteRepositories(), localRepository(), mds ); Iterator i = result.getArtifacts().iterator(); + i.next(); assertEquals( "n should be first", n, i.next() ); assertEquals( "m should be second", m, i.next() ); @@ -243,6 +244,7 @@ public class ArtifactResolverTest artifactResolver.resolveTransitively( set, projectArtifact, remoteRepositories(), localRepository(), mds ); i = result.getArtifacts().iterator(); + i.next(); assertEquals( "m should be first", m, i.next() ); assertEquals( "n should be second", n, i.next() ); }