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
This commit is contained in:
Jason van Zyl 2009-03-02 19:01:37 +00:00
parent 613253dda7
commit 92a962c9e1
2 changed files with 3 additions and 2 deletions

View File

@ -171,6 +171,8 @@ public class DefaultArtifactCollector
set.add( node );
// This is required right now.
result.addArtifact( artifact );
result.addRequestedArtifact( artifact );
}
}

View File

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