Package org.apache.maven.plugins.pmd
Class PmdReportTest
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.PmdReportTest
- 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
With custom rulesetsvoid
void
void
void
void
void
void
void
verify the pmd.xml file is included in the site when requested.void
void
void
void
void
Verify the correct working of the locationTemp methodvoid
void
void
void
void
void
void
Verify skip parametervoid
void
Verify that suppressMarker worksvoid
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
-
PmdReportTest
public PmdReportTest()
-
-
Method Details
-
setUp
- Overrides:
setUp
in classAbstractPmdReportTest
- Throws:
Exception
-
testDefaultConfiguration
- Throws:
Exception
-
testDefaultConfigurationNotRenderRuleViolationPriority
- Throws:
Exception
-
testDefaultConfigurationNoRenderViolationsByPriority
- Throws:
Exception
-
testDefaultConfigurationWithAnalysisCache
- Throws:
Exception
-
testJavascriptConfiguration
- Throws:
Exception
-
testFileURL
- Throws:
Exception
-
testCustomConfiguration
With custom rulesets- Throws:
Exception
-
testSkipConfiguration
Verify skip parameter- Throws:
Exception
-
testSkipEmptyReportConfiguration
- Throws:
Exception
-
testEmptyReportConfiguration
- Throws:
Exception
-
testInvalidFormat
- Throws:
Exception
-
testInvalidTargetJdk
- Throws:
Exception
-
testIncludeXmlInSite
verify the pmd.xml file is included in the site when requested.- Throws:
Exception
-
testLocationTemp
Verify the correct working of the locationTemp method- Throws:
Exception
-
testSuppressMarkerConfiguration
Verify that suppressMarker works- Throws:
Exception
-
testJspConfiguration
- Throws:
Exception
-
testPMDProcessingError
- Throws:
Exception
-
testPMDProcessingErrorWithDetailsSkipped
- Throws:
Exception
-
testPMDProcessingErrorWithDetailsNoReport
- Throws:
Exception
-
testPMDExcludeRootsShouldExcludeSubdirectories
- Throws:
Exception
-
testViolationExclusion
- Throws:
Exception
-
testCustomRenderer
- Throws:
MavenReportException
-
testCodeClimateRenderer
- Throws:
MavenReportException
-
testPmdReportCustomRulesNoExternalInfoUrl
- Throws:
Exception
-
testPmdReportResolveRulesets
- Throws:
Exception
-