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,PmdReportTest
- Since:
- 2.5
- Version:
- $Id$
- Author:
- Vincent Siveton
-
Field Summary
Fields inherited from class org.codehaus.plexus.PlexusTestCase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanlowerCaseContains(String text, String contains) Checks, whether the stringcontainedis contained in the giventextignoring case.protected voidRenderer the sink from the report mojo.protected voidsetUp()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, 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
-
AbstractPmdReportTest
public AbstractPmdReportTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classAbstractMojoTestCase- Throws:
Exception
-
renderer
protected void renderer(org.apache.maven.plugins.pmd.AbstractPmdReport mojo, File outputHtml) throws RendererException, IOException Renderer the sink from the report mojo.- Parameters:
mojo- not nulloutputHtml- not null- Throws:
RendererException- if anyIOException- if any
-
lowerCaseContains
Checks, whether the stringcontainedis contained in the giventextignoring case.- Parameters:
text- the string in which the search is executedcontains- the string, the should be searched- Returns:
trueif the string is contained, otherwisefalse.
-