o fixing the tests

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@747925 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2009-02-25 21:10:31 +00:00
parent 34820bc86c
commit a965b55cf4
1 changed files with 4 additions and 7 deletions

View File

@ -46,6 +46,7 @@ public class MavenMetadataSourceTest
protected void setUp()
throws Exception
{
super.setUp();
repositorySystem = lookup( MavenRepositorySystem.class );
}
@ -113,9 +114,7 @@ public class MavenMetadataSourceTest
MavenProject project = new MavenProject( model );
ArtifactFactory factory = lookup( ArtifactFactory.class );
project.setArtifacts( project.createArtifacts( factory, null, null ) );
project.setArtifacts( repositorySystem.createArtifacts( project.getDependencies(), null, null, project ) );
String key = ArtifactUtils.versionlessKey( groupId, artifactId );
@ -166,10 +165,8 @@ public class MavenMetadataSourceTest
injector.injectDefaults( model );
ArtifactFactory factory = lookup( ArtifactFactory.class );
project.setArtifacts( project.createArtifacts( factory, null, null ) );
project.setArtifacts( repositorySystem.createArtifacts( project.getDependencies(), null, null, project ) );
String key = ArtifactUtils.versionlessKey( groupId, artifactId );
Map artifactMap = project.getArtifactMap();