public abstract class AbstractArtifactComponentTestCase
extends org.codehaus.plexus.PlexusTestCase
Modifier and Type | Field and Description |
---|---|
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory |
protected org.apache.maven.repository.legacy.repository.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
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 org.apache.maven.repository.legacy.repository.ArtifactRepositoryFactory artifactRepositoryFactory
protected void customizeContainerConfiguration(org.codehaus.plexus.ContainerConfiguration containerConfiguration)
customizeContainerConfiguration
in class org.codehaus.plexus.PlexusTestCase
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 component()
protected org.apache.maven.artifact.repository.ArtifactRepository badLocalRepository() throws Exception
Exception
protected String getRepositoryLayout()
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository() throws Exception
Exception
protected org.apache.maven.artifact.repository.ArtifactRepository remoteRepository() throws Exception
Exception
protected org.apache.maven.artifact.repository.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<org.apache.maven.artifact.repository.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, org.apache.maven.artifact.repository.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, org.apache.maven.artifact.repository.ArtifactRepository repository) throws Exception
Exception
protected RepositorySystemSession initRepoSession() throws Exception
Exception
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.