214215216217218219220221222223224
{ // noinspection ErrorNotRethrown,UnusedCatchParameter MavenReport report = mavenReportExecution.getMavenReport(); try { if ( report.canGenerateReport() ) { filteredReports.add( mavenReportExecution ); } } catch ( AbstractMethodError e )
3637383940414243444546
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();
5859606162636465666768
setMojoPluginClasspath( mojo ); MavenReport reportMojo = (MavenReport) mojo; assertFalse( "Should not be able to generate a report", reportMojo.canGenerateReport() ); } private void setMojoPluginClasspath( Mojo mojo ) throws Exception {
215216217218219220221222223224225