org.apache.maven
Class AbstractCoreMavenComponentTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.AbstractCoreMavenComponentTestCase
- All Implemented Interfaces:
- Test
- Direct Known Subclasses:
- LifecycleExecutionPlanCalculatorTest, LifecycleExecutorSubModulesTest, LifecycleExecutorTest, MavenLifecycleParticipantTest, MavenTest, PluginManagerTest, PluginParameterExpressionEvaluatorTest, ProjectBuilderTest, ProjectDependenciesResolverTest
public abstract class AbstractCoreMavenComponentTestCase
- extends org.codehaus.plexus.PlexusTestCase
Methods inherited from class org.codehaus.plexus.PlexusTestCase |
customizeComponentConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer |
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, failNotEquals, failNotSame, failSame |
repositorySystem
@Requirement
protected RepositorySystem repositorySystem
projectBuilder
@Requirement
protected ProjectBuilder projectBuilder
AbstractCoreMavenComponentTestCase
public AbstractCoreMavenComponentTestCase()
setUp
protected void setUp()
throws Exception
- Overrides:
setUp
in class org.codehaus.plexus.PlexusTestCase
- Throws:
Exception
tearDown
protected void tearDown()
throws Exception
- Overrides:
tearDown
in class org.codehaus.plexus.PlexusTestCase
- Throws:
Exception
getProjectsDirectory
protected abstract String getProjectsDirectory()
getProject
protected File getProject(String name)
throws Exception
- Throws:
Exception
customizeContainerConfiguration
protected void customizeContainerConfiguration(org.codehaus.plexus.ContainerConfiguration containerConfiguration)
- We need to customize the standard Plexus container with the plugin discovery listener which
is what looks for the META-INF/maven/plugin.xml resources that enter the system when a Maven
plugin is loaded.
We also need to customize the Plexus container with a standard plugin discovery listener
which is the MavenPluginCollector. When a Maven plugin is discovered the MavenPluginCollector
collects the plugin descriptors which are found.
- Overrides:
customizeContainerConfiguration
in class org.codehaus.plexus.PlexusTestCase
createMavenExecutionRequest
protected MavenExecutionRequest createMavenExecutionRequest(File pom)
throws Exception
- Throws:
Exception
createMavenSession
protected MavenSession createMavenSession(File pom)
throws Exception
- Throws:
Exception
createMavenSession
protected MavenSession createMavenSession(File pom,
Properties executionProperties)
throws Exception
- Throws:
Exception
initRepoSession
protected void initRepoSession(ProjectBuildingRequest request)
createStubMavenProject
protected MavenProject createStubMavenProject()
getRemoteRepositories
protected List<ArtifactRepository> getRemoteRepositories()
throws InvalidRepositoryException
- Throws:
InvalidRepositoryException
getPluginArtifactRepositories
protected List<ArtifactRepository> getPluginArtifactRepositories()
throws InvalidRepositoryException
- Throws:
InvalidRepositoryException
getLocalRepository
protected ArtifactRepository getLocalRepository()
throws InvalidRepositoryException
- Throws:
InvalidRepositoryException
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.