public abstract class AbstractProjectInfoTestCase extends AbstractMojoTestCase
Modifier and Type | Field and Description |
---|---|
protected static Locale |
DEFAULT_LOCALE
The default locale is English.
|
Constructor and Description |
---|
AbstractProjectInfoTestCase() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.maven.report.projectinfo.AbstractProjectInfoReport |
createReportMojo(String goal,
File pluginXmlFile) |
protected File |
generateReport(org.apache.maven.report.projectinfo.AbstractProjectInfoReport mojo,
File pluginXmlFile) |
protected File |
generateReport(String goal,
String pluginXml)
Generate the report and return the generated file
|
protected File |
getGeneratedReport(String name)
Get the generated report as file in the test maven project.
|
protected String |
getString(String key)
Gets a trimmed String for the given key from the resource bundle defined by Plexus.
|
protected MavenProject |
getTestMavenProject()
Get the current Maven project
|
protected String |
prepareTitle(String name,
String title)
Gets a fully qualified title as generated by Doxia 1.6
|
protected void |
setUp() |
protected void |
tearDown() |
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getContainer, getPluginDescriptorLocation, getPluginDescriptorPath, getPublicDescriptorStream, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupConfiguredMojo, lookupConfiguredMojo, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, newMavenSession, newMojoExecution, setupContainer, setupContainerConfiguration, setVariableValueToObject
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release
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
protected static final Locale DEFAULT_LOCALE
protected void setUp() throws Exception
setUp
in class AbstractMojoTestCase
Exception
protected void tearDown() throws Exception
tearDown
in class org.codehaus.plexus.PlexusTestCase
Exception
protected String getString(String key)
key
- the key for the desired stringprotected String prepareTitle(String name, String title)
name
- the name to preparetitle
- the title to prepareprotected MavenProject getTestMavenProject()
protected File getGeneratedReport(String name) throws IOException
name
- the name of the report.IOException
- if the return file doesnt existprotected File generateReport(String goal, String pluginXml) throws Exception
goal
- the mojo goal.pluginXml
- the name of the xml file in "src/test/resources/plugin-configs/".Exception
- if anyprotected org.apache.maven.report.projectinfo.AbstractProjectInfoReport createReportMojo(String goal, File pluginXmlFile) throws Exception
Exception
protected File generateReport(org.apache.maven.report.projectinfo.AbstractProjectInfoReport mojo, File pluginXmlFile) throws Exception
Exception
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.