From 92a962c9e1cc1846b451a22e2f2a0c359a756a95 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Mon, 2 Mar 2009 19:01:37 +0000 Subject: [PATCH] o fixes for failing tests, there is much confusion between metadata and artifacts, requests made and real values returned. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749414 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/artifact/resolver/DefaultArtifactCollector.java | 2 ++ .../apache/maven/artifact/resolver/ArtifactResolverTest.java | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactCollector.java b/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactCollector.java index 8881ac23ce..64b5470237 100644 --- a/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactCollector.java +++ b/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactCollector.java @@ -171,6 +171,8 @@ public class DefaultArtifactCollector set.add( node ); + // This is required right now. + result.addArtifact( artifact ); result.addRequestedArtifact( artifact ); } } 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 31c4e7f5cd..a0ab7d2de4 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 @@ -157,8 +157,7 @@ public class ArtifactResolverTest }; ArtifactResolutionResult result = - artifactResolver.resolveTransitively( Collections.singleton( g ), projectArtifact, remoteRepositories(), - localRepository(), mds ); + artifactResolver.resolveTransitively( Collections.singleton( g ), projectArtifact, remoteRepositories(), localRepository(), mds ); assertEquals( 2, result.getArtifacts().size() );