public abstract class AbstractMojoTestCase
extends org.codehaus.plexus.PlexusTestCase
| Constructor and Description |
|---|
AbstractMojoTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.maven.plugin.Mojo |
configureMojo(org.apache.maven.plugin.Mojo mojo,
org.codehaus.plexus.configuration.PlexusConfiguration pluginConfiguration)
Configure the mojo with the given plexus configuration
|
protected org.apache.maven.plugin.Mojo |
configureMojo(org.apache.maven.plugin.Mojo mojo,
String artifactId,
File pom)
Configure the mojo
|
protected org.codehaus.plexus.configuration.PlexusConfiguration |
extractPluginConfiguration(String artifactId,
File pom) |
protected org.codehaus.plexus.configuration.PlexusConfiguration |
extractPluginConfiguration(String artifactId,
org.codehaus.plexus.util.xml.Xpp3Dom pomDom) |
protected Map |
getVariablesAndValuesFromObject(Class clazz,
Object object)
Convenience method to obtain all variables and values from the mojo (including its superclasses)
Note: the values in the map are of type Object so the caller is responsible for casting to desired types.
|
protected Map |
getVariablesAndValuesFromObject(Object object)
Convenience method to obtain all variables and values from the mojo (including its superclasses)
Note: the values in the map are of type Object so the caller is responsible for casting to desired types.
|
protected Object |
getVariableValueFromObject(Object object,
String variable)
Convenience method to obtain the value of a variable on a mojo that might not have a getter.
|
protected org.apache.maven.plugin.Mojo |
lookupEmptyMojo(String goal,
File pom)
Lookup the mojo leveraging the actual subprojects pom
|
protected org.apache.maven.plugin.Mojo |
lookupEmptyMojo(String goal,
String pluginPom)
Lookup an empty mojo
|
protected org.apache.maven.plugin.Mojo |
lookupMojo(String goal,
File pom)
Lookup the mojo leveraging the actual subprojects pom
|
protected org.apache.maven.plugin.Mojo |
lookupMojo(String goal,
String pluginPom)
Lookup the mojo leveraging the subproject pom
|
protected org.apache.maven.plugin.Mojo |
lookupMojo(String groupId,
String artifactId,
String version,
String goal,
org.codehaus.plexus.configuration.PlexusConfiguration pluginConfiguration)
lookup the mojo while we have all of the relavent information
|
protected void |
setUp() |
protected void |
setVariableValueToObject(Object object,
String variable,
Object value)
Convenience method to set values to variables in objects that don't have setters
|
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDowncountTestCases, 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 void setUp()
throws Exception
setUp in class org.codehaus.plexus.PlexusTestCaseExceptionprotected org.apache.maven.plugin.Mojo lookupMojo(String goal, String pluginPom) throws Exception
goal - pluginPom - Exceptionprotected org.apache.maven.plugin.Mojo lookupEmptyMojo(String goal, String pluginPom) throws Exception
goal - pluginPom - Exceptionprotected org.apache.maven.plugin.Mojo lookupMojo(String goal, File pom) throws Exception
goal - pom - Exceptionprotected org.apache.maven.plugin.Mojo lookupEmptyMojo(String goal, File pom) throws Exception
goal - pom - Exceptionprotected org.apache.maven.plugin.Mojo lookupMojo(String groupId, String artifactId, String version, String goal, org.codehaus.plexus.configuration.PlexusConfiguration pluginConfiguration) throws Exception
groupId - artifactId - version - goal - pluginConfiguration - Exceptionprotected org.codehaus.plexus.configuration.PlexusConfiguration extractPluginConfiguration(String artifactId, File pom) throws Exception
artifactId - pom - Exceptionprotected org.codehaus.plexus.configuration.PlexusConfiguration extractPluginConfiguration(String artifactId, org.codehaus.plexus.util.xml.Xpp3Dom pomDom) throws Exception
artifactId - pomDom - Exceptionprotected org.apache.maven.plugin.Mojo configureMojo(org.apache.maven.plugin.Mojo mojo,
String artifactId,
File pom)
throws Exception
mojo - artifactId - pom - Exceptionprotected org.apache.maven.plugin.Mojo configureMojo(org.apache.maven.plugin.Mojo mojo,
org.codehaus.plexus.configuration.PlexusConfiguration pluginConfiguration)
throws Exception
mojo - pluginConfiguration - Exceptionprotected Object getVariableValueFromObject(Object object, String variable) throws IllegalAccessException
object - variable - IllegalArgumentExceptionIllegalAccessExceptionprotected Map getVariablesAndValuesFromObject(Object object) throws IllegalAccessException
object - IllegalAccessExceptionprotected Map getVariablesAndValuesFromObject(Class clazz, Object object) throws IllegalAccessException
clazz - object - IllegalAccessExceptionprotected void setVariableValueToObject(Object object, String variable, Object value) throws IllegalAccessException
object - variable - value - IllegalAccessExceptionCopyright © 2008–2014. All rights reserved.