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 org.apache.maven.plugin.testing.AbstractMojoTestCase
Since:
2.5
Version:
$Id$
Author:
Vincent Siveton
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.maven.plugin.Mojo
    lookupMojo(String goal, File pom)
     
    static boolean
    lowerCaseContains(String text, String contains)
    Checks, whether the string contained is contained in the given text ignoring case.
    protected void
    renderer(AbstractPmdReport mojo, File outputHtml)
    Renderer the sink from the report mojo.
    protected void
     

    Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase

    addGuiceModules, configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getContainer, getPluginDescriptorLocation, getPluginDescriptorPath, getPublicDescriptorStream, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupConfiguredMojo, lookupConfiguredMojo, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, newMavenSession, newMojoExecution, setupContainer, setupContainerConfiguration, setVariableValueToObject

    Methods inherited from class org.codehaus.plexus.PlexusTestCase

    customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfigurationName, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, tearDown, teardownContainer

    Methods inherited from class junit.framework.TestCase

    countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString

    Methods inherited from class junit.framework.Assert

    assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AbstractPmdReportTest

      public AbstractPmdReportTest()
  • Method Details

    • setUp

      protected void setUp() throws Exception
      Overrides:
      setUp in class org.apache.maven.plugin.testing.AbstractMojoTestCase
      Throws:
      Exception
    • renderer

      protected void renderer(AbstractPmdReport mojo, File outputHtml) throws org.apache.maven.doxia.siterenderer.RendererException, IOException
      Renderer the sink from the report mojo.
      Parameters:
      mojo - not null
      outputHtml - not null
      Throws:
      org.apache.maven.doxia.siterenderer.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 org.apache.maven.plugin.Mojo lookupMojo(String goal, File pom) throws Exception
      Overrides:
      lookupMojo in class org.apache.maven.plugin.testing.AbstractMojoTestCase
      Throws:
      Exception