Class PmdReportTest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.plugin.testing.AbstractMojoTestCase
org.apache.maven.plugins.pmd.AbstractPmdReportTest
org.apache.maven.plugins.pmd.PmdReportTest
All Implemented Interfaces:
junit.framework.Test

public class PmdReportTest extends AbstractPmdReportTest
Version:
$Id$
Author:
Maria Odea Ching
  • Constructor Details

    • PmdReportTest

      public PmdReportTest()
  • Method Details

    • setUp

      protected void setUp() throws Exception
      Overrides:
      setUp in class AbstractPmdReportTest
      Throws:
      Exception
    • testDefaultConfiguration

      public void testDefaultConfiguration() throws Exception
      Throws:
      Exception
    • testDefaultConfigurationNotRenderRuleViolationPriority

      public void testDefaultConfigurationNotRenderRuleViolationPriority() throws Exception
      Throws:
      Exception
    • testDefaultConfigurationNoRenderViolationsByPriority

      public void testDefaultConfigurationNoRenderViolationsByPriority() throws Exception
      Throws:
      Exception
    • testDefaultConfigurationWithAnalysisCache

      public void testDefaultConfigurationWithAnalysisCache() throws Exception
      Throws:
      Exception
    • testJavascriptConfiguration

      public void testJavascriptConfiguration() throws Exception
      Throws:
      Exception
    • testFileURL

      public void testFileURL() throws Exception
      Throws:
      Exception
    • testCustomConfiguration

      public void testCustomConfiguration() throws Exception
      With custom rulesets
      Throws:
      Exception
    • testSkipConfiguration

      public void testSkipConfiguration() throws Exception
      Verify skip parameter
      Throws:
      Exception
    • testSkipEmptyReportConfiguration

      public void testSkipEmptyReportConfiguration() throws Exception
      Throws:
      Exception
    • testEmptyReportConfiguration

      public void testEmptyReportConfiguration() throws Exception
      Throws:
      Exception
    • testInvalidFormat

      public void testInvalidFormat() throws Exception
      Throws:
      Exception
    • testInvalidTargetJdk

      public void testInvalidTargetJdk() throws Exception
      Throws:
      Exception
    • testIncludeXmlInSite

      public void testIncludeXmlInSite() throws Exception
      verify the pmd.xml file is included in the site when requested.
      Throws:
      Exception
    • testLocationTemp

      public void testLocationTemp() throws Exception
      Verify the correct working of the locationTemp method
      Throws:
      Exception
    • testSuppressMarkerConfiguration

      public void testSuppressMarkerConfiguration() throws Exception
      Verify that suppressMarker works
      Throws:
      Exception
    • testSuppressMarkerConfigurationWithoutRendering

      public void testSuppressMarkerConfigurationWithoutRendering() throws Exception
      Throws:
      Exception
    • testJspConfiguration

      public void testJspConfiguration() throws Exception
      Throws:
      Exception
    • testPMDProcessingError

      public void testPMDProcessingError() throws Exception
      Throws:
      Exception
    • testPMDProcessingErrorWithDetailsSkipped

      public void testPMDProcessingErrorWithDetailsSkipped() throws Exception
      Throws:
      Exception
    • testPMDProcessingErrorWithDetailsNoReport

      public void testPMDProcessingErrorWithDetailsNoReport() throws Exception
      Throws:
      Exception
    • testPMDExcludeRootsShouldExcludeSubdirectories

      public void testPMDExcludeRootsShouldExcludeSubdirectories() throws Exception
      Throws:
      Exception
    • testViolationExclusion

      public void testViolationExclusion() throws Exception
      Throws:
      Exception
    • testCustomRenderer

      public void testCustomRenderer() throws org.apache.maven.reporting.MavenReportException
      Throws:
      org.apache.maven.reporting.MavenReportException
    • testCodeClimateRenderer

      public void testCodeClimateRenderer() throws org.apache.maven.reporting.MavenReportException
      Throws:
      org.apache.maven.reporting.MavenReportException
    • testPmdReportCustomRulesNoExternalInfoUrl

      public void testPmdReportCustomRulesNoExternalInfoUrl() throws Exception
      Throws:
      Exception
    • testPmdReportResolveRulesets

      public void testPmdReportResolveRulesets() throws Exception
      Throws:
      Exception