public abstract class AbstractArtifactComponentTestCase extends 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(ContainerConfiguration containerConfiguration) |
protected void |
deleteArtifact(Artifact artifact,
ArtifactRepository repository) |
protected void |
deleteLocalArtifact(Artifact artifact) |
protected String |
getRepositoryLayout() |
protected org.eclipse.aether.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, 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
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected ArtifactRepositoryFactory artifactRepositoryFactory
public AbstractArtifactComponentTestCase()
protected void customizeContainerConfiguration(ContainerConfiguration containerConfiguration)
customizeContainerConfiguration
in class PlexusTestCase
protected void setUp() throws Exception
setUp
in class PlexusTestCase
Exception
protected void tearDown() throws Exception
tearDown
in class PlexusTestCase
Exception
protected ArtifactRepository badLocalRepository() throws Exception
Exception
protected String getRepositoryLayout()
protected ArtifactRepository localRepository() throws Exception
Exception
protected ArtifactRepository remoteRepository() throws Exception
Exception
protected ArtifactRepository badRemoteRepository() throws Exception
Exception
protected void assertRemoteArtifactPresent(Artifact artifact) throws Exception
Exception
protected void assertLocalArtifactPresent(Artifact artifact) throws Exception
Exception
protected void assertRemoteArtifactNotPresent(Artifact artifact) throws Exception
Exception
protected void assertLocalArtifactNotPresent(Artifact artifact) throws Exception
Exception
protected List<ArtifactRepository> remoteRepositories() throws Exception
Exception
protected Artifact createLocalArtifact(String artifactId, String version) throws Exception
Exception
protected Artifact createRemoteArtifact(String artifactId, String version) throws Exception
Exception
protected void createLocalArtifact(Artifact artifact) throws Exception
Exception
protected void createRemoteArtifact(Artifact artifact) throws Exception
Exception
protected void createArtifact(Artifact artifact, ArtifactRepository repository) throws Exception
Exception
protected Artifact createArtifact(String artifactId, String version) throws Exception
Exception
protected Artifact createArtifact(String artifactId, String version, String type) throws Exception
Exception
protected Artifact createArtifact(String groupId, String artifactId, String version, String type) throws Exception
Exception
protected void deleteLocalArtifact(Artifact artifact) throws Exception
Exception
protected void deleteArtifact(Artifact artifact, ArtifactRepository repository) throws Exception
Exception
protected org.eclipse.aether.RepositorySystemSession initRepoSession() throws Exception
Exception
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.