Class AbstractPmdReportTest

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
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CpdReportTest, CpdViolationCheckMojoTest, PmdReportTest, PmdViolationCheckMojoTest

public abstract class AbstractPmdReportTest extends AbstractMojoTestCase
Since:
2.5
Version:
$Id$
Author:
Vincent Siveton
  • Constructor Details

    • AbstractPmdReportTest

      public AbstractPmdReportTest()
  • Method Details

    • setUp

      protected void setUp() throws Exception
      Overrides:
      setUp in class AbstractMojoTestCase
      Throws:
      Exception
    • renderer

      protected void renderer(org.apache.maven.plugins.pmd.AbstractPmdReport mojo, File outputHtml) throws RendererException, IOException
      Renderer the sink from the report mojo.
      Parameters:
      mojo - not null
      outputHtml - not null
      Throws:
      RendererException - if any
      IOException - if any
    • lowerCaseContains

      public static boolean lowerCaseContains(String text, String contains)
      Checks, whether the string contained is contained in the given text ignoring case.
      Parameters:
      text - the string in which the search is executed
      contains - the string, the should be searched
      Returns:
      true if the string is contained, otherwise false.
    • lookupMojo

      protected Mojo lookupMojo(String goal, File pom) throws Exception
      Overrides:
      lookupMojo in class AbstractMojoTestCase
      Throws:
      Exception