|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.codehaus.plexus.PlexusTestCase org.apache.maven.plugin.testing.AbstractMojoTestCase org.apache.maven.report.projectinfo.AbstractProjectInfoTestCase
public abstract class AbstractProjectInfoTestCase
Abstract class to test reports generation with HTTPUnit framework.
Field Summary | |
---|---|
protected static Locale |
DEFAULT_LOCALE
The default locale is English. |
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
---|
basedir, container |
Constructor Summary | |
---|---|
AbstractProjectInfoTestCase()
|
Method Summary | |
---|---|
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 void |
setUp()
|
protected void |
tearDown()
|
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase |
---|
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, setVariableValueToObject |
Methods inherited from class org.codehaus.plexus.PlexusTestCase |
---|
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final Locale DEFAULT_LOCALE
Constructor Detail |
---|
public AbstractProjectInfoTestCase()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class org.apache.maven.plugin.testing.AbstractMojoTestCase
Exception
protected InputStream getCustomConfiguration() throws Exception
getCustomConfiguration
in class PlexusTestCase
Exception
protected void tearDown() throws Exception
tearDown
in class PlexusTestCase
Exception
protected String getString(String key)
key
- the key for the desired string
protected 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 any
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |