public class PluginManagerTest extends AbstractCoreMavenComponentTestCase
AbstractCoreMavenComponentTestCase.ProjectBuilder
container, projectBuilder, 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() |
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, createMavenSession, createStubMavenProject, getContainer, getLocalRepository, getPluginArtifactRepositories, getProject, getRemoteRepositories, initRepoSession
protected String getProjectsDirectory()
getProjectsDirectory
in class AbstractCoreMavenComponentTestCase
@Test public void testMojoDescriptorRetrieval() throws Exception
Exception
@Test public void testRemoteResourcesPlugin() throws Exception
Exception
@Test public void testMojoConfigurationIsMergedCorrectly() throws Exception
Exception
@Test public void testMojoWhereInternallyStatedDependencyIsOverriddenByProject() throws Exception
Exception
@Test public void testMojoThatIsPresentInTheCurrentBuild() throws Exception
Exception
@Test public void testAggregatorMojo() throws Exception
Exception
@Test public void testMojoThatRequiresExecutionToAGivenPhaseBeforeExecutingItself() throws Exception
Exception
@Test public void testThatPluginDependencyThatHasSystemScopeIsResolved() throws Exception
Exception
protected void assertPluginDescriptor(MojoDescriptor mojoDescriptor, String groupId, String artifactId, String version)
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.