public abstract class AbstractCoreMavenComponentTestCase
extends org.codehaus.plexus.PlexusTestCase
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractCoreMavenComponentTestCase.PluginBuilder |
protected class |
AbstractCoreMavenComponentTestCase.ProjectBuilder |
Modifier and Type | Field and Description |
---|---|
protected ProjectBuilder |
projectBuilder |
protected RepositorySystem |
repositorySystem |
Constructor and Description |
---|
AbstractCoreMavenComponentTestCase() |
Modifier and Type | Method and Description |
---|---|
protected MavenExecutionRequest |
createMavenExecutionRequest(File pom) |
protected MavenSession |
createMavenSession(File pom) |
protected MavenSession |
createMavenSession(File pom,
Properties executionProperties) |
protected MavenSession |
createMavenSession(File pom,
Properties executionProperties,
boolean includeModules) |
protected MavenProject |
createStubMavenProject() |
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.
|
protected ArtifactRepository |
getLocalRepository() |
protected List<ArtifactRepository> |
getPluginArtifactRepositories() |
protected File |
getProject(String name) |
protected abstract String |
getProjectsDirectory() |
protected List<ArtifactRepository> |
getRemoteRepositories() |
protected void |
initRepoSession(ProjectBuildingRequest request) |
protected void |
setUp() |
protected void |
tearDown() |
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
@Requirement protected RepositorySystem repositorySystem
@Requirement protected ProjectBuilder projectBuilder
protected void setUp() throws Exception
setUp
in class org.codehaus.plexus.PlexusTestCase
Exception
protected void tearDown() throws Exception
tearDown
in class org.codehaus.plexus.PlexusTestCase
Exception
protected abstract String getProjectsDirectory()
protected void customizeContainerConfiguration(org.codehaus.plexus.ContainerConfiguration containerConfiguration)
customizeContainerConfiguration
in class org.codehaus.plexus.PlexusTestCase
protected MavenExecutionRequest createMavenExecutionRequest(File pom) throws Exception
Exception
protected MavenSession createMavenSession(File pom) throws Exception
Exception
protected MavenSession createMavenSession(File pom, Properties executionProperties) throws Exception
Exception
protected MavenSession createMavenSession(File pom, Properties executionProperties, boolean includeModules) throws Exception
Exception
protected void initRepoSession(ProjectBuildingRequest request) throws Exception
Exception
protected MavenProject createStubMavenProject()
protected List<ArtifactRepository> getRemoteRepositories() throws InvalidRepositoryException
InvalidRepositoryException
protected List<ArtifactRepository> getPluginArtifactRepositories() throws InvalidRepositoryException
InvalidRepositoryException
protected ArtifactRepository getLocalRepository() throws InvalidRepositoryException
InvalidRepositoryException
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.