public class PluginManagerTest extends AbstractCoreMavenComponentTestCase
AbstractCoreMavenComponentTestCase.ProjectBuilder
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() |
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, createMavenSession, createStubMavenProject, customizeContainerConfiguration, getLocalRepository, getPluginArtifactRepositories, getProject, getRemoteRepositories, initRepoSession
customizeContext, getBasedir, getClassLoader, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, teardownContainer
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
protected void setUp() throws Exception
setUp
in class AbstractCoreMavenComponentTestCase
Exception
protected void tearDown() throws Exception
tearDown
in class AbstractCoreMavenComponentTestCase
Exception
protected String getProjectsDirectory()
getProjectsDirectory
in class AbstractCoreMavenComponentTestCase
public void testMojoDescriptorRetrieval() throws Exception
Exception
public void testRemoteResourcesPlugin() throws Exception
Exception
public void testMojoConfigurationIsMergedCorrectly() throws Exception
Exception
public void testMojoWhereInternallyStatedDependencyIsOverriddenByProject() throws Exception
Exception
public void testMojoThatIsPresentInTheCurrentBuild() throws Exception
Exception
public void testAggregatorMojo() throws Exception
Exception
public void testMojoThatRequiresExecutionToAGivenPhaseBeforeExecutingItself() throws Exception
Exception
public void testThatPluginDependencyThatHasSystemScopeIsResolved() throws Exception
Exception
protected void assertPluginDescriptor(MojoDescriptor mojoDescriptor, String groupId, String artifactId, String version)
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.