junit.framework.Test
CiManagementReportTest
, DependenciesReportTest
, DependencyConvergenceReportTest
, DependencyManagementReportTest
, IndexReportTest
, IssueManagementReportTest
, LicensesReportTest
, MailingListsReportTest
, ModulesReportTest
, PluginManagementReportTest
, ScmReportTest
, SummaryReportTest
, TeamReportTest
public abstract class AbstractProjectInfoTestCase extends AbstractMojoTestCase
Modifier and Type | Field | Description |
---|---|---|
protected static java.util.Locale |
DEFAULT_LOCALE |
The default locale is English.
|
Constructor | Description |
---|---|
AbstractProjectInfoTestCase() |
Modifier and Type | Method | Description |
---|---|---|
protected AbstractProjectInfoReport |
createReportMojo(java.lang.String goal,
java.io.File pluginXmlFile) |
|
protected java.io.File |
generateReport(java.lang.String goal,
java.lang.String pluginXml) |
Generate the report and return the generated file
|
protected java.io.File |
generateReport(AbstractProjectInfoReport mojo,
java.io.File pluginXmlFile) |
|
protected java.io.File |
getGeneratedReport(java.lang.String name) |
Get the generated report as file in the test maven project.
|
protected java.lang.String |
getString(java.lang.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 java.lang.String |
prepareTitle(java.lang.String name,
java.lang.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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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 java.util.Locale DEFAULT_LOCALE
protected void setUp() throws java.lang.Exception
setUp
in class AbstractMojoTestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class org.codehaus.plexus.PlexusTestCase
java.lang.Exception
protected java.lang.String getString(java.lang.String key)
key
- the key for the desired stringprotected java.lang.String prepareTitle(java.lang.String name, java.lang.String title)
name
- the name to preparetitle
- the title to prepareprotected MavenProject getTestMavenProject()
protected java.io.File getGeneratedReport(java.lang.String name) throws java.io.IOException
name
- the name of the report.java.io.IOException
- if the return file doesnt existprotected java.io.File generateReport(java.lang.String goal, java.lang.String pluginXml) throws java.lang.Exception
goal
- the mojo goal.pluginXml
- the name of the xml file in "src/test/resources/plugin-configs/".java.lang.Exception
- if anyprotected AbstractProjectInfoReport createReportMojo(java.lang.String goal, java.io.File pluginXmlFile) throws java.lang.Exception
java.lang.Exception
protected java.io.File generateReport(AbstractProjectInfoReport mojo, java.io.File pluginXmlFile) throws java.lang.Exception
java.lang.Exception
Copyright © 2005–2018 The Apache Software Foundation. All rights reserved.