o fixing MavenMetadataSource

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@747919 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2009-02-25 21:01:07 +00:00
parent af465cb137
commit 7b3b37986c
1 changed files with 10 additions and 2 deletions

View File

@ -29,6 +29,7 @@ import org.apache.maven.model.DependencyManagement;
import org.apache.maven.model.Exclusion;
import org.apache.maven.model.Model;
import org.apache.maven.project.MavenProject;
import org.apache.maven.repository.MavenRepositorySystem;
import org.codehaus.plexus.PlexusTestCase;
import java.util.ArrayList;
@ -39,7 +40,14 @@ import java.util.Set;
public class MavenMetadataSourceTest
extends PlexusTestCase
{
{
private MavenRepositorySystem repositorySystem;
protected void setUp()
throws Exception
{
repositorySystem = lookup( MavenRepositorySystem.class );
}
public void testShouldNotCarryExclusionsOverFromDependencyToDependency()
throws Exception
@ -72,7 +80,7 @@ public class MavenMetadataSourceTest
MavenProject project = new MavenProject( new Model() );
Set result = MavenMetadataSource.createArtifacts( factory, deps, null, dependencyFilter, project );
Set result = repositorySystem.createArtifacts( deps, null, dependencyFilter, project );
for ( Iterator it = result.iterator(); it.hasNext(); )
{