if ( cacheFile != null )
{
assertTrue( "Test cache file exists", new File( cacheFile ).exists() );
}
MavenReport reportMojo = (MavenReport) mojo;
File outputDir = reportMojo.getReportOutputDirectory();
Boolean rss = (Boolean) getVariableValueFromObject( mojo, "enableRSS" );
if ( rss.booleanValue() )
{
File rssFile = new File( outputDir, "checkstyle.rss" );
assertTrue( "Test rss file exists", rssFile.exists() );
}
File useFile = (File) getVariableValueFromObject( mojo, "useFile" );
if ( useFile != null )
{
assertTrue( "Test useFile exists", useFile.exists() );
}
String filename = reportMojo.getOutputName() + ".html";
File outputHtml = new File( outputDir, filename );
renderer( mojo, outputHtml );
assertTrue( outputHtml.getAbsolutePath() + " not generated!", outputHtml.exists() );