Package org.apache.maven.plugins.pmd
Class AbstractPmdReportTest
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
- All Implemented Interfaces:
junit.framework.Test
- Direct Known Subclasses:
CpdReportTest
,CpdViolationCheckMojoTest
,PmdReportTest
,PmdViolationCheckMojoTest
public abstract class AbstractPmdReportTest
extends org.apache.maven.plugin.testing.AbstractMojoTestCase
- Since:
- 2.5
- Version:
- $Id$
- Author:
- Vincent Siveton
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.maven.plugin.Mojo
lookupMojo
(String goal, File pom) static boolean
lowerCaseContains
(String text, String contains) Checks, whether the stringcontained
is contained in the giventext
ignoring case.protected void
renderer
(AbstractPmdReport mojo, File outputHtml) Renderer the sink from the report mojo.protected void
setUp()
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
customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfigurationName, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, tearDown, teardownContainer
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
-
Constructor Details
-
AbstractPmdReportTest
public AbstractPmdReportTest()
-
-
Method Details
-
setUp
- Overrides:
setUp
in classorg.apache.maven.plugin.testing.AbstractMojoTestCase
- Throws:
Exception
-
renderer
protected void renderer(AbstractPmdReport mojo, File outputHtml) throws org.apache.maven.doxia.siterenderer.RendererException, IOException Renderer the sink from the report mojo.- Parameters:
mojo
- not nulloutputHtml
- not null- Throws:
org.apache.maven.doxia.siterenderer.RendererException
- if anyIOException
- if any
-
lowerCaseContains
Checks, whether the stringcontained
is contained in the giventext
ignoring case.- Parameters:
text
- the string in which the search is executedcontains
- the string, the should be searched- Returns:
true
if the string is contained, otherwisefalse
.
-
lookupMojo
- Overrides:
lookupMojo
in classorg.apache.maven.plugin.testing.AbstractMojoTestCase
- Throws:
Exception
-