throws Exception
{
File testPom = new File( getBasedir(),
"src/test/plugin-configs/directory/appendAssemblyId-false-plugin-config.xml" );
DirectoryMojo mojo = ( DirectoryMojo ) lookupMojo( "directory", testPom );
assertNotNull( mojo );
String classifier = ( String ) getVariableValueFromObject( mojo, "classifier" );
String finalName = ( String ) getVariableValueFromObject( mojo, "finalName" );
File outputDir = ( File ) getVariableValueFromObject( mojo, "outputDirectory" );
MavenProject project = ( MavenProject ) getVariableValueFromObject( mojo, "executedProject" );
Set artifacts = project.getArtifacts();
mojo.execute();
File dir = new File( outputDir, finalName + "-" + classifier );
assertTrue( dir.exists() );