}
public void testInstrumentation()
throws Exception
{
Mojo mojo =
lookupMojo( "instrument", PlexusTestCase.getBasedir() + "/src/test/plugin-configs/" +
"instrument-instrumentation-plugin-config.xml" );
setVariableValueToObject( mojo, "pluginClasspathList", getPluginClasspath() );
Log log = new SystemStreamLog()
{
public boolean isDebugEnabled()
{
return true;
}
};
setVariableValueToObject( mojo, "log", log );
mojo.execute();
MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "project" );
File instrumentedDir = new File( project.getBuild().getOutputDirectory() );