public abstract class AbstractProjectInfoTestCase
extends org.apache.maven.plugin.testing.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 AbstractProjectInfoReport |
createReportMojo(String goal,
File pluginXmlFile) |
protected File |
generateReport(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 org.apache.maven.project.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() |
addGuiceModules, configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getContainer, getPluginDescriptorLocation, getPluginDescriptorPath, getPublicDescriptorStream, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupConfiguredMojo, lookupConfiguredMojo, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, newMavenSession, newMojoExecution, setupContainer, setupContainerConfiguration, setVariableValueToObjectcustomizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfigurationName, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, teardownContainerassertEquals, 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, toStringprotected static final Locale DEFAULT_LOCALE
protected void setUp()
throws Exception
setUp in class org.apache.maven.plugin.testing.AbstractMojoTestCaseExceptionprotected void tearDown()
throws Exception
tearDown in class org.codehaus.plexus.PlexusTestCaseExceptionprotected 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 org.apache.maven.project.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 AbstractProjectInfoReport createReportMojo(String goal, File pluginXmlFile) throws Exception
Exceptionprotected File generateReport(AbstractProjectInfoReport mojo, File pluginXmlFile) throws Exception
ExceptionCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.