|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.plugin.testing.AbstractMojoTestCase
org.apache.maven.report.projectinfo.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
Exception
protected InputStream getCustomConfiguration() throws Exception
Exception
protected void tearDown() throws Exception
Exception
protected String getString(String key)
key
- the key for the desired string
IllegalArgumentException
- if the parameter is empty.protected org.apache.maven.project.MavenProject getTestMavenProject()
protected File getGeneratedReport(String name) throws IOException
IOException
- if the return file doesnt existprotected File generateReport(String goal, String pluginXml) throws Exception
goal
- pluginXml
-
Exception
- if any
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |