public class PluginManagerTest extends AbstractCoreMavenComponentTestCase
AbstractCoreMavenComponentTestCase.PluginBuilder, AbstractCoreMavenComponentTestCase.ProjectBuilderprojectBuilder, repositorySystem| Constructor and Description |
|---|
PluginManagerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertPluginDescriptor(MojoDescriptor mojoDescriptor,
String groupId,
String artifactId,
String version) |
protected String |
getProjectsDirectory() |
protected void |
setUp() |
protected void |
tearDown() |
void |
testAggregatorMojo()
This is the case where the Mojo wants to execute on every project and then do something at the end
with the results of each project.
|
void |
testBuildExtensionsPluginLoading() |
void |
testMojoConfigurationIsMergedCorrectly() |
void |
testMojoDescriptorRetrieval() |
void |
testMojoThatIsPresentInTheCurrentBuild()
The case where you have a plugin in the current build that you want to be used on projects in
the current build.
|
void |
testMojoThatRequiresExecutionToAGivenPhaseBeforeExecutingItself()
This is the case where a Mojo needs the lifecycle run to a certain phase before it can do
anything useful.
|
void |
testMojoWhereInternallyStatedDependencyIsOverriddenByProject()
The case where the user wants to specify an alternate version of the underlying tool.
|
void |
testPluginLoading() |
void |
testPluginRealmCache() |
void |
testRemoteResourcesPlugin() |
void |
testSurefirePlugin() |
void |
testThatPluginDependencyThatHasSystemScopeIsResolved() |
createMavenExecutionRequest, createMavenSession, createMavenSession, createStubMavenProject, customizeContainerConfiguration, getLocalRepository, getPluginArtifactRepositories, getProject, getRemoteRepositories, initRepoSessioncustomizeContext, getBasedir, getClassLoader, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, teardownContainerassertEquals, 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, toStringpublic PluginManagerTest()
protected void setUp() throws Exception
setUp in class AbstractCoreMavenComponentTestCaseExceptionprotected void tearDown() throws Exception
tearDown in class AbstractCoreMavenComponentTestCaseExceptionprotected String getProjectsDirectory()
getProjectsDirectory in class AbstractCoreMavenComponentTestCasepublic void testPluginLoading() throws Exception
Exceptionpublic void testMojoDescriptorRetrieval() throws Exception
Exceptionpublic void testRemoteResourcesPlugin() throws Exception
Exceptionpublic void testSurefirePlugin() throws Exception
Exceptionpublic void testMojoConfigurationIsMergedCorrectly() throws Exception
Exceptionpublic void testMojoWhereInternallyStatedDependencyIsOverriddenByProject() throws Exception
Exceptionpublic void testMojoThatIsPresentInTheCurrentBuild() throws Exception
Exceptionpublic void testAggregatorMojo() throws Exception
Exceptionpublic void testMojoThatRequiresExecutionToAGivenPhaseBeforeExecutingItself() throws Exception
Exceptionpublic void testThatPluginDependencyThatHasSystemScopeIsResolved() throws Exception
Exceptionprotected void assertPluginDescriptor(MojoDescriptor mojoDescriptor, String groupId, String artifactId, String version)
public void testPluginRealmCache() throws Exception
Exceptionpublic void testBuildExtensionsPluginLoading() throws Exception
ExceptionCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.