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.AbstractPmdReportTestCase
org.apache.maven.plugins.pmd.CpdReportTest
- All Implemented Interfaces:
junit.framework.Test
- Version:
- $Id$
- Author:
- Maria Odea Ching
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsetUp()voidvoidvoidvoidTest CPDReport using custom configurationvoidTest CPDReport given the default configurationvoidvoidvoidverify the cpd.xml file is included in the site when requested.voidTest CPDReport with invalid formatvoidvoidTest CPDReport with the text renderer given as "format=txt"voidMethods inherited from class org.apache.maven.plugins.pmd.AbstractPmdReportTestCase
createReportMojo, generateReport, generateReport, getGeneratedReport, getTestMavenProject, lowerCaseContains, readFileMethods 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, lookupMojo, newMavenSession, newMojoExecution, setupContainer, setupContainerConfiguration, setVariableValueToObjectMethods 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, teardownContainerMethods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringMethods 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
-
Constructor Details
-
CpdReportTest
public CpdReportTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classAbstractPmdReportTestCase- 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
-