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() |
customizeContext, getBasedir, getClassLoader, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, teardownContainer
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
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, fail, fail, failNotEquals, failNotSame, failSame
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 RepositorySystemSession initRepoSession() throws Exception
Exception
Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.