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 voidsetUp()voidvoidWith custom rulesetsvoidvoidvoidvoidvoidvoidvoidvoidverify the pmd.xml file is included in the site when requested.voidvoidvoidvoidvoidVerify the correct working of the locationTemp methodvoidvoidvoidvoidvoidvoidvoidVerify skip parametervoidvoidVerify that suppressMarker worksvoidMethods inherited from class org.apache.maven.plugins.pmd.AbstractPmdReportTest
lowerCaseContains, rendererMethods 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
customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, tearDownMethods 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, failNotEquals, failNotSame, failSame, format
-
Constructor Details
-
PmdReportTest
public PmdReportTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin 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
-