mirror of https://github.com/apache/maven.git
o notes about the testing
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@727330 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2b808a15d1
commit
699640f2ec
|
@ -52,8 +52,16 @@ public void testNexusPoms()
|
|||
|
||||
PomArtifactResolver resolver = new FileBasedPomArtifactResolver( artifacts );
|
||||
|
||||
// make a version that doesn't require a null mixin set. for most pom construction tests we're
|
||||
// not going to use mixins.
|
||||
PomClassicDomainModel model = projectBuilder.buildModel( nexusLauncher, null, resolver );
|
||||
|
||||
// This will get extremely tedious unless we can shorten these into small expressions to
|
||||
// retrieve the target values for testing.
|
||||
|
||||
// model.build.plugins[0].executions
|
||||
// model/build/plugins[0].executions
|
||||
|
||||
Model m = model.getModel();
|
||||
|
||||
Plugin plugin = (Plugin) m.getBuild().getPlugins().get( 0 );
|
||||
|
@ -62,7 +70,9 @@ public void testNexusPoms()
|
|||
|
||||
//assertEquals( 7, executions.size() );
|
||||
}
|
||||
|
||||
|
||||
// Need to get this to walk around a directory and automatically build up the artifact set. If we
|
||||
// follow some standard conventions this can be simple.
|
||||
class FileBasedPomArtifactResolver
|
||||
implements PomArtifactResolver
|
||||
{
|
||||
|
@ -76,7 +86,6 @@ public FileBasedPomArtifactResolver( Map<String, File> artifacts )
|
|||
public void resolve( Artifact artifact )
|
||||
throws IOException
|
||||
{
|
||||
System.out.println( artifact );
|
||||
artifact.setFile( artifacts.get( artifact.getArtifactId() ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue