mirror of https://github.com/apache/maven.git
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:
parent
34820bc86c
commit
a965b55cf4
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue