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 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 InputStream |
getCustomConfiguration() |
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() |
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, setVariableValueToObjectcreateContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, releasecountTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, failSameprotected static final Locale DEFAULT_LOCALE
protected void setUp()
throws Exception
setUp in class AbstractMojoTestCaseExceptionprotected InputStream getCustomConfiguration() throws Exception
getCustomConfiguration in class org.codehaus.plexus.PlexusTestCaseExceptionprotected 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–2015 The Apache Software Foundation. All rights reserved.