extends AbstractCoberturaTestCase
{
public void testReport()
throws Exception
{
Mojo mojo =
lookupMojo( "cobertura", PlexusTestCase.getBasedir() + "/src/test/plugin-configs/report-plugin-config.xml" );
setMojoPluginClasspath( mojo );
MavenReport reportMojo = (MavenReport) mojo;
assertTrue( "Should be able to generate a report", reportMojo.canGenerateReport() );
assertTrue( "Should be an externale report", reportMojo.isExternalReport() );
mojo.execute();
File outputHtml = new File( reportMojo.getReportOutputDirectory(), reportMojo.getOutputName() + ".html" );
assertTrue( "Test for generated html file", outputHtml.exists() );
}