@Test public final void testExecuteReport() throws PMDException, SAXException, URISyntaxException, IOException { final URL sourceDirectoryResource = getClass().getResource( "/test" ); assertNotNull( "Source directory is not found as a resource", sourceDirectoryResource ); assertNotNull( "Source directory is not found as a resource", sourceDirectoryResource.toURI() ); final File sourceDirectory = new File( sourceDirectoryResource.toURI().getPath() ); final File outputDirectory = new File( OUTPUT_DIRECTORY_URL ); getFlexPmdEngine( sourceDirectory, outputDirectory, "", null ).executeReport( new FlexPmdViolations() ); onTestExecuteReportDone(); }
public final void executeReport( final FlexPmdViolations flexPmdViolations ) throws PMDException { if ( source == null && sourceList == null ) { throw new PMDException( "unspecified sourceDirectory" ); } if ( outputDirectory == null ) { throw new PMDException( "unspecified outputDirectory" ); } if ( ruleSet != null ) { if ( !flexPmdViolations.hasViolationsBeenComputed() ) { computeViolations( flexPmdViolations ); } computeViolationNumber( flexPmdViolations ); writeAnyReport( flexPmdViolations ); } }
AbstractFlexPmdEngine { public final void executeReport( final FlexPmdViolations flexPmdViolations ) throws PMDException { if ( source == null && sourceList == null ) { throw new PMDException( "unspecified sourceDirectory" ); } if ( outputDirectory == null ) { throw new PMDException( "unspecified outputDirectory" ); } if ( ruleSet != null ) { if ( !flexPmdViolations.hasViolationsBeenComputed() ) { computeViolations( flexPmdViolations ); } computeViolationNumber( flexPmdViolations ); writeAnyReport( flexPmdViolations ); } } }
AbstractFlexPmdEngine { public final void executeReport( final FlexPmdViolations flexPmdViolations ) throws PMDException { if ( source == null && sourceList == null ) { throw new PMDException( "unspecified sourceDirectory" ); } if ( outputDirectory == null ) { throw new PMDException( "unspecified outputDirectory" ); } if ( ruleSet != null ) { if ( !flexPmdViolations.hasViolationsBeenComputed() ) { computeViolations( flexPmdViolations ); } computeViolationNumber( flexPmdViolations ); writeAnyReport( flexPmdViolations ); } } AbstractFlexPmdEngine( final FlexPmdParameters parameters ); }
AbstractFlexPmdEngine { public final void executeReport( final FlexPmdViolations flexPmdViolations ) throws PMDException { if ( source == null && sourceList == null ) { throw new PMDException( "unspecified sourceDirectory" ); } if ( outputDirectory == null ) { throw new PMDException( "unspecified outputDirectory" ); } if ( ruleSet != null ) { if ( !flexPmdViolations.hasViolationsBeenComputed() ) { computeViolations( flexPmdViolations ); } computeViolationNumber( flexPmdViolations ); writeAnyReport( flexPmdViolations ); } } AbstractFlexPmdEngine( final FlexPmdParameters parameters ); final void executeReport( final FlexPmdViolations flexPmdViolations ); final RuleSet getRuleSet(); }
AbstractFlexPmdEngine { public final void executeReport( final FlexPmdViolations flexPmdViolations ) throws PMDException { if ( source == null && sourceList == null ) { throw new PMDException( "unspecified sourceDirectory" ); } if ( outputDirectory == null ) { throw new PMDException( "unspecified outputDirectory" ); } if ( ruleSet != null ) { if ( !flexPmdViolations.hasViolationsBeenComputed() ) { computeViolations( flexPmdViolations ); } computeViolationNumber( flexPmdViolations ); writeAnyReport( flexPmdViolations ); } } AbstractFlexPmdEngine( final FlexPmdParameters parameters ); final void executeReport( final FlexPmdViolations flexPmdViolations ); final RuleSet getRuleSet();  }