Package org.apache.maven.plugins.pmd
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
- Version:
- $Id$
- Author:
- Maria Odea Ching
-
Field Summary
Fields inherited from class org.codehaus.plexus.PlexusTestCase
context
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
setUp()
void
void
void
void
Test CPDReport using custom configurationvoid
Test CPDReport given the default configurationvoid
void
void
verify the cpd.xml file is included in the site when requested.void
Test CPDReport with invalid formatvoid
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
customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, tearDown
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, failNotEquals, failNotSame, failSame, format
-
Constructor Details
-
CpdReportTest
public CpdReportTest()
-
-
Method Details
-
setUp
- Overrides:
setUp
in classAbstractPmdReportTest
- Throws:
Exception
-
testDefaultConfiguration
Test CPDReport given the default configuration- Throws:
Exception
-
testTxtFormat
Test CPDReport with the text renderer given as "format=txt"- Throws:
Exception
-
testCustomConfiguration
Test CPDReport using custom configuration- Throws:
Exception
-
testInvalidFormat
Test CPDReport with invalid format- Throws:
Exception
-
testWriteNonHtml
- Throws:
Exception
-
testIncludeXmlInSite
verify the cpd.xml file is included in the site when requested.- Throws:
Exception
-
testSkipEmptyReportConfiguration
- Throws:
Exception
-
testEmptyReportConfiguration
- Throws:
Exception
-
testCpdEncodingConfiguration
- Throws:
Exception
-
testCpdJavascriptConfiguration
- Throws:
Exception
-
testCpdJspConfiguration
- Throws:
Exception
-
testExclusionsConfiguration
- Throws:
Exception
-