public abstract class AbstractArtifactComponentTestCase
extends org.codehaus.plexus.PlexusTestCase
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory |
protected ArtifactRepositoryFactory |
artifactRepositoryFactory |
| Constructor and Description |
|---|
AbstractArtifactComponentTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertLocalArtifactNotPresent(Artifact artifact) |
protected void |
assertLocalArtifactPresent(Artifact artifact) |
protected void |
assertRemoteArtifactNotPresent(Artifact artifact) |
protected void |
assertRemoteArtifactPresent(Artifact artifact) |
protected ArtifactRepository |
badLocalRepository()
Return an existing file, not a directory - causes creation to fail.
|
protected ArtifactRepository |
badRemoteRepository() |
protected abstract String |
component() |
protected void |
createArtifact(Artifact artifact,
ArtifactRepository repository) |
protected Artifact |
createArtifact(String artifactId,
String version) |
protected Artifact |
createArtifact(String artifactId,
String version,
String type) |
protected Artifact |
createArtifact(String groupId,
String artifactId,
String version,
String type) |
protected void |
createLocalArtifact(Artifact artifact) |
protected Artifact |
createLocalArtifact(String artifactId,
String version) |
protected void |
createRemoteArtifact(Artifact artifact) |
protected Artifact |
createRemoteArtifact(String artifactId,
String version) |
protected void |
customizeContainerConfiguration(org.codehaus.plexus.ContainerConfiguration containerConfiguration) |
protected void |
deleteArtifact(Artifact artifact,
ArtifactRepository repository) |
protected void |
deleteLocalArtifact(Artifact artifact) |
protected String |
getRepositoryLayout() |
protected RepositorySystemSession |
initRepoSession() |
protected ArtifactRepository |
localRepository() |
protected List<ArtifactRepository> |
remoteRepositories() |
protected ArtifactRepository |
remoteRepository() |
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, toStringprotected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected ArtifactRepositoryFactory artifactRepositoryFactory
protected void customizeContainerConfiguration(org.codehaus.plexus.ContainerConfiguration containerConfiguration)
customizeContainerConfiguration in class org.codehaus.plexus.PlexusTestCaseprotected void setUp()
throws Exception
setUp in class org.codehaus.plexus.PlexusTestCaseExceptionprotected void tearDown()
throws Exception
tearDown in class org.codehaus.plexus.PlexusTestCaseExceptionprotected abstract String component()
protected ArtifactRepository badLocalRepository() throws Exception
Exceptionprotected String getRepositoryLayout()
protected ArtifactRepository localRepository() throws Exception
Exceptionprotected ArtifactRepository remoteRepository() throws Exception
Exceptionprotected ArtifactRepository badRemoteRepository() throws Exception
Exceptionprotected void assertRemoteArtifactPresent(Artifact artifact) throws Exception
Exceptionprotected void assertLocalArtifactPresent(Artifact artifact) throws Exception
Exceptionprotected void assertRemoteArtifactNotPresent(Artifact artifact) throws Exception
Exceptionprotected void assertLocalArtifactNotPresent(Artifact artifact) throws Exception
Exceptionprotected List<ArtifactRepository> remoteRepositories() throws Exception
Exceptionprotected Artifact createLocalArtifact(String artifactId, String version) throws Exception
Exceptionprotected Artifact createRemoteArtifact(String artifactId, String version) throws Exception
Exceptionprotected void createLocalArtifact(Artifact artifact) throws Exception
Exceptionprotected void createRemoteArtifact(Artifact artifact) throws Exception
Exceptionprotected void createArtifact(Artifact artifact, ArtifactRepository repository) throws Exception
Exceptionprotected Artifact createArtifact(String artifactId, String version) throws Exception
Exceptionprotected Artifact createArtifact(String artifactId, String version, String type) throws Exception
Exceptionprotected Artifact createArtifact(String groupId, String artifactId, String version, String type) throws Exception
Exceptionprotected void deleteLocalArtifact(Artifact artifact) throws Exception
Exceptionprotected void deleteArtifact(Artifact artifact, ArtifactRepository repository) throws Exception
Exceptionprotected RepositorySystemSession initRepoSession() throws Exception
ExceptionCopyright © 2001–2017 The Apache Software Foundation. All rights reserved.