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
public abstract class AbstractPmdReportTest extends AbstractMojoTestCase
- Since:
- 2.5
- Version:
- $Id$
- Author:
- Vincent Siveton
-
-
Constructor Summary
Constructors Constructor Description AbstractPmdReportTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
lowerCaseContains(java.lang.String text, java.lang.String contains)
Checks, whether the stringcontained
is contained in the giventext
ignoring case.protected void
renderer(org.apache.maven.plugins.pmd.AbstractPmdReport mojo, java.io.File outputHtml)
Renderer the sink from the report mojo.protected void
setUp()
-
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:
setUp
in classAbstractMojoTestCase
- Throws:
java.lang.Exception
-
renderer
protected void renderer(org.apache.maven.plugins.pmd.AbstractPmdReport mojo, java.io.File outputHtml) throws RendererException, java.io.IOException
Renderer the sink from the report mojo.- Parameters:
mojo
- not nulloutputHtml
- not null- Throws:
RendererException
- if anyjava.io.IOException
- if any
-
lowerCaseContains
public static boolean lowerCaseContains(java.lang.String text, java.lang.String contains)
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
.
-
-