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 org.apache.maven.project.ProjectBuilder |
projectBuilder |
protected org.apache.maven.repository.RepositorySystem |
repositorySystem |
Constructor and Description |
---|
AbstractCoreMavenComponentTestCase() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.maven.execution.MavenExecutionRequest |
createMavenExecutionRequest(File pom) |
protected org.apache.maven.execution.MavenSession |
createMavenSession(File pom) |
protected org.apache.maven.execution.MavenSession |
createMavenSession(File pom,
Properties executionProperties) |
protected org.apache.maven.execution.MavenSession |
createMavenSession(File pom,
Properties executionProperties,
boolean includeModules) |
protected org.apache.maven.project.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 org.apache.maven.artifact.repository.ArtifactRepository |
getLocalRepository() |
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
getPluginArtifactRepositories() |
protected File |
getProject(String name) |
protected abstract String |
getProjectsDirectory() |
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
getRemoteRepositories() |
protected void |
initRepoSession(org.apache.maven.project.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 org.apache.maven.repository.RepositorySystem repositorySystem
@Requirement protected org.apache.maven.project.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 org.apache.maven.execution.MavenExecutionRequest createMavenExecutionRequest(File pom) throws Exception
Exception
protected org.apache.maven.execution.MavenSession createMavenSession(File pom) throws Exception
Exception
protected org.apache.maven.execution.MavenSession createMavenSession(File pom, Properties executionProperties) throws Exception
Exception
protected org.apache.maven.execution.MavenSession createMavenSession(File pom, Properties executionProperties, boolean includeModules) throws Exception
Exception
protected void initRepoSession(org.apache.maven.project.ProjectBuildingRequest request) throws Exception
Exception
protected org.apache.maven.project.MavenProject createStubMavenProject()
protected List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepositories() throws InvalidRepositoryException
InvalidRepositoryException
protected List<org.apache.maven.artifact.repository.ArtifactRepository> getPluginArtifactRepositories() throws InvalidRepositoryException
InvalidRepositoryException
protected org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository() throws InvalidRepositoryException
InvalidRepositoryException
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.