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 booleanlowerCaseContains(java.lang.String text, java.lang.String contains)Checks, whether the stringcontainedis contained in the giventextignoring case.protected voidrenderer(org.apache.maven.plugins.pmd.AbstractPmdReport mojo, java.io.File outputHtml)Renderer the sink from the report mojo.protected voidsetUp()-
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:
setUpin classAbstractMojoTestCase- Throws:
java.lang.Exception
-
renderer
protected void renderer(org.apache.maven.plugins.pmd.AbstractPmdReport mojo, java.io.File outputHtml) throws RendererException, java.io.IOExceptionRenderer 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 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.
-
-