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() ); }