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
public class CpdReportTest extends AbstractPmdReportTest
- Version:
- $Id$
- Author:
- Maria Odea Ching
-
-
Constructor Summary
Constructors Constructor Description CpdReportTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestCpdEncodingConfiguration()voidtestCpdJavascriptConfiguration()voidtestCpdJspConfiguration()voidtestCustomConfiguration()Test CPDReport using custom configurationvoidtestDefaultConfiguration()Test CPDReport given the default configurationvoidtestEmptyReportConfiguration()voidtestExclusionsConfiguration()voidtestIncludeXmlInSite()verify the cpd.xml file is included in the site when requested.voidtestInvalidFormat()Test CPDReport with invalid formatvoidtestSkipEmptyReportConfiguration()voidtestTxtFormat()Test CPDReport with the text renderer given as "format=txt"voidtestWriteNonHtml()-
Methods inherited from class org.apache.maven.plugins.pmd.AbstractPmdReportTest
lowerCaseContains, renderer
-
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getContainer, getPluginDescriptorLocation, getPluginDescriptorPath, getPublicDescriptorStream, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupConfiguredMojo, lookupConfiguredMojo, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, 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
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
-
-
-
Method Detail
-
setUp
protected void setUp() throws java.lang.Exception- Overrides:
setUpin classAbstractPmdReportTest- Throws:
java.lang.Exception
-
testDefaultConfiguration
public void testDefaultConfiguration() throws java.lang.ExceptionTest CPDReport given the default configuration- Throws:
java.lang.Exception
-
testTxtFormat
public void testTxtFormat() throws java.lang.ExceptionTest CPDReport with the text renderer given as "format=txt"- Throws:
java.lang.Exception
-
testCustomConfiguration
public void testCustomConfiguration() throws java.lang.ExceptionTest CPDReport using custom configuration- Throws:
java.lang.Exception
-
testInvalidFormat
public void testInvalidFormat() throws java.lang.ExceptionTest CPDReport with invalid format- Throws:
java.lang.Exception
-
testWriteNonHtml
public void testWriteNonHtml() throws java.lang.Exception- Throws:
java.lang.Exception
-
testIncludeXmlInSite
public void testIncludeXmlInSite() throws java.lang.Exceptionverify the cpd.xml file is included in the site when requested.- Throws:
java.lang.Exception
-
testSkipEmptyReportConfiguration
public void testSkipEmptyReportConfiguration() throws java.lang.Exception- Throws:
java.lang.Exception
-
testEmptyReportConfiguration
public void testEmptyReportConfiguration() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCpdEncodingConfiguration
public void testCpdEncodingConfiguration() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCpdJavascriptConfiguration
public void testCpdJavascriptConfiguration() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCpdJspConfiguration
public void testCpdJspConfiguration() throws java.lang.Exception- Throws:
java.lang.Exception
-
testExclusionsConfiguration
public void testExclusionsConfiguration() throws java.lang.Exception- Throws:
java.lang.Exception
-
-