mirror of https://github.com/apache/maven.git
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
This commit is contained in:
parent
9f4dcc0c53
commit
22b4d0ee5f
|
@ -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() );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue