org.apache.maven.artifact
Class AbstractArtifactComponentTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.artifact.AbstractArtifactComponentTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
ArtifactDeployerTest, ArtifactInstallerTest, ArtifactResolverTest

public abstract class AbstractArtifactComponentTestCase
extends org.codehaus.plexus.PlexusTestCase

Version:
$Id: AbstractArtifactComponentTestCase.java,v 1.5 2004/10/23 13:33:59 jvanzyl Exp $
Author:
Jason van Zyl

Field Summary
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
AbstractArtifactComponentTestCase()
           
 
Method Summary
protected  void assertLocalArtifactNotPresent(org.apache.maven.artifact.Artifact artifact)
           
protected  void assertLocalArtifactPresent(org.apache.maven.artifact.Artifact artifact)
           
protected  void assertRemoteArtifactNotPresent(org.apache.maven.artifact.Artifact artifact)
           
protected  void assertRemoteArtifactPresent(org.apache.maven.artifact.Artifact artifact)
           
protected  org.apache.maven.artifact.repository.ArtifactRepository badLocalRepository()
          Return an existing file, not a directory - causes creation to fail.
protected  org.apache.maven.artifact.repository.ArtifactRepository badRemoteRepository()
           
protected abstract  String component()
           
protected  void createArtifact(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository repository)
           
protected  org.apache.maven.artifact.Artifact createArtifact(String artifactId, String version)
           
protected  org.apache.maven.artifact.Artifact createArtifact(String artifactId, String version, String type)
           
protected  org.apache.maven.artifact.Artifact createArtifact(String groupId, String artifactId, String version, String type)
           
protected  void createLocalArtifact(org.apache.maven.artifact.Artifact artifact)
           
protected  org.apache.maven.artifact.Artifact createLocalArtifact(String artifactId, String version)
           
protected  void createRemoteArtifact(org.apache.maven.artifact.Artifact artifact)
           
protected  org.apache.maven.artifact.Artifact createRemoteArtifact(String artifactId, String version)
           
protected  void deleteArtifact(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository repository)
           
protected  void deleteLocalArtifact(org.apache.maven.artifact.Artifact artifact)
           
protected  String getRepositoryLayout()
           
protected  org.apache.maven.artifact.repository.ArtifactRepository localRepository()
           
protected  List remoteRepositories()
           
protected  org.apache.maven.artifact.repository.ArtifactRepository remoteRepository()
           
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractArtifactComponentTestCase

public AbstractArtifactComponentTestCase()
Method Detail

component

protected abstract String component()

badLocalRepository

protected org.apache.maven.artifact.repository.ArtifactRepository badLocalRepository()
                                                                              throws Exception
Return an existing file, not a directory - causes creation to fail.

Throws:
Exception

getRepositoryLayout

protected String getRepositoryLayout()

localRepository

protected org.apache.maven.artifact.repository.ArtifactRepository localRepository()
                                                                           throws Exception
Throws:
Exception

remoteRepository

protected org.apache.maven.artifact.repository.ArtifactRepository remoteRepository()
                                                                            throws Exception
Throws:
Exception

badRemoteRepository

protected org.apache.maven.artifact.repository.ArtifactRepository badRemoteRepository()
                                                                               throws Exception
Throws:
Exception

assertRemoteArtifactPresent

protected void assertRemoteArtifactPresent(org.apache.maven.artifact.Artifact artifact)
                                    throws Exception
Throws:
Exception

assertLocalArtifactPresent

protected void assertLocalArtifactPresent(org.apache.maven.artifact.Artifact artifact)
                                   throws Exception
Throws:
Exception

assertRemoteArtifactNotPresent

protected void assertRemoteArtifactNotPresent(org.apache.maven.artifact.Artifact artifact)
                                       throws Exception
Throws:
Exception

assertLocalArtifactNotPresent

protected void assertLocalArtifactNotPresent(org.apache.maven.artifact.Artifact artifact)
                                      throws Exception
Throws:
Exception

remoteRepositories

protected List remoteRepositories()
                           throws Exception
Throws:
Exception

createLocalArtifact

protected org.apache.maven.artifact.Artifact createLocalArtifact(String artifactId,
                                                                 String version)
                                                          throws Exception
Throws:
Exception

createRemoteArtifact

protected org.apache.maven.artifact.Artifact createRemoteArtifact(String artifactId,
                                                                  String version)
                                                           throws Exception
Throws:
Exception

createLocalArtifact

protected void createLocalArtifact(org.apache.maven.artifact.Artifact artifact)
                            throws Exception
Throws:
Exception

createRemoteArtifact

protected void createRemoteArtifact(org.apache.maven.artifact.Artifact artifact)
                             throws Exception
Throws:
Exception

createArtifact

protected void createArtifact(org.apache.maven.artifact.Artifact artifact,
                              org.apache.maven.artifact.repository.ArtifactRepository repository)
                       throws Exception
Throws:
Exception

createArtifact

protected org.apache.maven.artifact.Artifact createArtifact(String artifactId,
                                                            String version)
                                                     throws Exception
Throws:
Exception

createArtifact

protected org.apache.maven.artifact.Artifact createArtifact(String artifactId,
                                                            String version,
                                                            String type)
                                                     throws Exception
Throws:
Exception

createArtifact

protected org.apache.maven.artifact.Artifact createArtifact(String groupId,
                                                            String artifactId,
                                                            String version,
                                                            String type)
                                                     throws Exception
Throws:
Exception

deleteLocalArtifact

protected void deleteLocalArtifact(org.apache.maven.artifact.Artifact artifact)
                            throws Exception
Throws:
Exception

deleteArtifact

protected void deleteArtifact(org.apache.maven.artifact.Artifact artifact,
                              org.apache.maven.artifact.repository.ArtifactRepository repository)
                       throws Exception
Throws:
Exception


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.