Class CpdReportTest

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.CpdReportTest
All Implemented Interfaces:
junit.framework.Test

public class CpdReportTest extends AbstractPmdReportTest
Version:
$Id$
Author:
Maria Odea Ching
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    void
     
    void
     
    void
     
    void
    Test CPDReport using custom configuration
    void
    Test CPDReport given the default configuration
    void
     
    void
     
    void
    verify the cpd.xml file is included in the site when requested.
    void
    Test CPDReport with invalid format
    void
     
    void
    Test CPDReport with the text renderer given as "format=txt"
    void
     

    Methods inherited from class org.apache.maven.plugins.pmd.AbstractPmdReportTest

    lookupMojo, lowerCaseContains, renderer

    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

    • CpdReportTest

      public CpdReportTest()
  • Method Details

    • setUp

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

      public void testDefaultConfiguration() throws Exception
      Test CPDReport given the default configuration
      Throws:
      Exception
    • testTxtFormat

      public void testTxtFormat() throws Exception
      Test CPDReport with the text renderer given as "format=txt"
      Throws:
      Exception
    • testCustomConfiguration

      public void testCustomConfiguration() throws Exception
      Test CPDReport using custom configuration
      Throws:
      Exception
    • testInvalidFormat

      public void testInvalidFormat() throws Exception
      Test CPDReport with invalid format
      Throws:
      Exception
    • testWriteNonHtml

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

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

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

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

      public void testCpdEncodingConfiguration() throws Exception
      Throws:
      Exception
    • testCpdJavascriptConfiguration

      public void testCpdJavascriptConfiguration() throws Exception
      Throws:
      Exception
    • testCpdJspConfiguration

      public void testCpdJspConfiguration() throws Exception
      Throws:
      Exception
    • testExclusionsConfiguration

      public void testExclusionsConfiguration() throws Exception
      Throws:
      Exception