Class PmdReportTest

    • Constructor Detail

      • PmdReportTest

        public PmdReportTest()
    • Method Detail

      • setUp

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

        public void testDefaultConfiguration()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDefaultConfigurationNotRenderRuleViolationPriority

        public void testDefaultConfigurationNotRenderRuleViolationPriority()
                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDefaultConfigurationNoRenderViolationsByPriority

        public void testDefaultConfigurationNoRenderViolationsByPriority()
                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDefaultConfigurationWithAnalysisCache

        public void testDefaultConfigurationWithAnalysisCache()
                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testJavascriptConfiguration

        public void testJavascriptConfiguration()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testFileURL

        public void testFileURL()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testCustomConfiguration

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

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

        public void testSkipEmptyReportConfiguration()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEmptyReportConfiguration

        public void testEmptyReportConfiguration()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testInvalidFormat

        public void testInvalidFormat()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testInvalidTargetJdk

        public void testInvalidTargetJdk()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testIncludeXmlInSite

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

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

        public void testSuppressMarkerConfiguration()
                                             throws java.lang.Exception
        Verify that suppressMarker works
        Throws:
        java.lang.Exception
      • testJspConfiguration

        public void testJspConfiguration()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testPMDProcessingError

        public void testPMDProcessingError()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testPMDProcessingErrorWithDetailsSkipped

        public void testPMDProcessingErrorWithDetailsSkipped()
                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testPMDProcessingErrorWithDetailsNoReport

        public void testPMDProcessingErrorWithDetailsNoReport()
                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testPMDExcludeRootsShouldExcludeSubdirectories

        public void testPMDExcludeRootsShouldExcludeSubdirectories()
                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testViolationExclusion

        public void testViolationExclusion()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testPmdReportCustomRulesNoExternalInfoUrl

        public void testPmdReportCustomRulesNoExternalInfoUrl()
                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception