o change signatures to match the changes in the plugin manager

git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@774404 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2009-05-13 15:32:42 +00:00
parent d13f1295b7
commit 97f00265c8
1 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ public class PluginManagerTest
plugin.setGroupId( "org.codehaus.plexus" ); plugin.setGroupId( "org.codehaus.plexus" );
plugin.setArtifactId( "plexus-component-metadata" ); plugin.setArtifactId( "plexus-component-metadata" );
plugin.setVersion( plexusVersion ); plugin.setVersion( plexusVersion );
PluginDescriptor pluginDescriptor = pluginManager.loadPlugin( plugin, session.getCurrentProject(), session.getLocalRepository() ); PluginDescriptor pluginDescriptor = pluginManager.loadPlugin( plugin, session.getLocalRepository(), session.getCurrentProject().getRemoteArtifactRepositories() );
assertNotNull( pluginDescriptor ); assertNotNull( pluginDescriptor );
assertNotNull( pluginDescriptor.getClassRealm() ); assertNotNull( pluginDescriptor.getClassRealm() );
} }
@ -51,7 +51,7 @@ public class PluginManagerTest
plugin.setArtifactId( "plexus-component-metadata" ); plugin.setArtifactId( "plexus-component-metadata" );
plugin.setVersion( plexusVersion ); plugin.setVersion( plexusVersion );
MojoDescriptor mojoDescriptor = pluginManager.getMojoDescriptor( plugin, goal, session.getCurrentProject(), session.getLocalRepository() ); MojoDescriptor mojoDescriptor = pluginManager.getMojoDescriptor( plugin, goal, session.getLocalRepository(), session.getCurrentProject().getRemoteArtifactRepositories() );
assertNotNull( mojoDescriptor ); assertNotNull( mojoDescriptor );
assertEquals( "generate-metadata", mojoDescriptor.getGoal() ); assertEquals( "generate-metadata", mojoDescriptor.getGoal() );
assertNotNull( mojoDescriptor.getRealm() ); assertNotNull( mojoDescriptor.getRealm() );
@ -115,7 +115,7 @@ public class PluginManagerTest
plugin.setVersion( "2.4.2" ); plugin.setVersion( "2.4.2" );
// The project has already been fully interpolated so getting the raw mojoDescriptor is not going to have the processes configuration. // The project has already been fully interpolated so getting the raw mojoDescriptor is not going to have the processes configuration.
MojoDescriptor mojoDescriptor = pluginManager.getMojoDescriptor( plugin, goal, session.getCurrentProject(), session.getLocalRepository() ); MojoDescriptor mojoDescriptor = pluginManager.getMojoDescriptor( plugin, goal, session.getLocalRepository(), session.getCurrentProject().getRemoteArtifactRepositories() );
assertPluginDescriptor( mojoDescriptor, "org.apache.maven.plugins", "maven-surefire-plugin", "2.4.2" ); assertPluginDescriptor( mojoDescriptor, "org.apache.maven.plugins", "maven-surefire-plugin", "2.4.2" );
System.out.println( session.getCurrentProject().getBuild().getPluginsAsMap() ); System.out.println( session.getCurrentProject().getBuild().getPluginsAsMap() );