public abstract class AbstractCoreMavenComponentTestCase
extends org.codehaus.plexus.PlexusTestCase
| Modifier and Type | Class and Description |
|---|---|
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, teardownContainerassertEquals, 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.PlexusTestCaseExceptionprotected void tearDown()
throws Exception
tearDown in class org.codehaus.plexus.PlexusTestCaseExceptionprotected abstract String getProjectsDirectory()
protected void customizeContainerConfiguration(org.codehaus.plexus.ContainerConfiguration containerConfiguration)
customizeContainerConfiguration in class org.codehaus.plexus.PlexusTestCaseprotected org.apache.maven.execution.MavenExecutionRequest createMavenExecutionRequest(File pom) throws Exception
Exceptionprotected org.apache.maven.execution.MavenSession createMavenSession(File pom) throws Exception
Exceptionprotected org.apache.maven.execution.MavenSession createMavenSession(File pom, Properties executionProperties) throws Exception
Exceptionprotected org.apache.maven.execution.MavenSession createMavenSession(File pom, Properties executionProperties, boolean includeModules) throws Exception
Exceptionprotected void initRepoSession(org.apache.maven.project.ProjectBuildingRequest request)
throws Exception
Exceptionprotected org.apache.maven.project.MavenProject createStubMavenProject()
protected List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepositories() throws InvalidRepositoryException
InvalidRepositoryExceptionprotected List<org.apache.maven.artifact.repository.ArtifactRepository> getPluginArtifactRepositories() throws InvalidRepositoryException
InvalidRepositoryExceptionprotected org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository() throws InvalidRepositoryException
InvalidRepositoryExceptionCopyright © 2001–2021 The Apache Software Foundation. All rights reserved.