org.apache.maven.artifact.resolver
Class ArtifactResolverTest

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
                  extended by org.apache.maven.artifact.resolver.ArtifactResolverTest
All Implemented Interfaces:
junit.framework.Test

public class ArtifactResolverTest
extends AbstractArtifactComponentTestCase

Version:
$Id: ArtifactResolverTest.java 688932 2008-08-26 01:24:27Z jdcasey $
Author:
Jason van Zyl

Field Summary
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
ArtifactResolverTest()
           
 
Method Summary
protected  String component()
           
protected  org.apache.maven.artifact.Artifact createArtifact(String groupId, String artifactId, String version, String type)
           
protected  void setUp()
           
 void testResolutionFailureWhenArtifactNotPresentInRemoteRepository()
           
 void testResolutionFailureWhenArtifactNotPresentInRemoteRepositoryWithMirrors()
           
 void testResolutionOfAnArtifactWhereOneRemoteRepositoryIsBadButOneIsGood()
           
 void testResolutionOfASingleArtifactWhereTheArtifactIsNotPresentLocallyAndMustBeRetrievedFromTheRemoteRepository()
           
 void testResolutionOfASingleArtifactWhereTheArtifactIsPresentInTheLocalRepository()
           
 void testTransitiveResolutionWhereAllArtifactsAreNotPresentInTheLocalRepositoryAndMustBeRetrievedFromTheRemoteRepository()
           
 void testTransitiveResolutionWhereAllArtifactsArePresentInTheLocalRepository()
           
 
Methods inherited from class org.apache.maven.artifact.AbstractArtifactComponentTestCase
assertLocalArtifactNotPresent, assertLocalArtifactPresent, assertRemoteArtifactNotPresent, assertRemoteArtifactPresent, badLocalRepository, badRemoteRepository, createArtifact, createArtifact, createArtifact, createLocalArtifact, createLocalArtifact, createRemoteArtifact, createRemoteArtifact, deleteArtifact, deleteLocalArtifact, getRepositoryLayout, localRepository, remoteRepositories, 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, 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

ArtifactResolverTest

public ArtifactResolverTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class org.codehaus.plexus.PlexusTestCase
Throws:
Exception

component

protected String component()
Specified by:
component in class AbstractArtifactComponentTestCase

testResolutionOfASingleArtifactWhereTheArtifactIsPresentInTheLocalRepository

public void testResolutionOfASingleArtifactWhereTheArtifactIsPresentInTheLocalRepository()
                                                                                  throws Exception
Throws:
Exception

testResolutionOfASingleArtifactWhereTheArtifactIsNotPresentLocallyAndMustBeRetrievedFromTheRemoteRepository

public void testResolutionOfASingleArtifactWhereTheArtifactIsNotPresentLocallyAndMustBeRetrievedFromTheRemoteRepository()
                                                                                                                 throws Exception
Throws:
Exception

createArtifact

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

testTransitiveResolutionWhereAllArtifactsArePresentInTheLocalRepository

public void testTransitiveResolutionWhereAllArtifactsArePresentInTheLocalRepository()
                                                                             throws Exception
Throws:
Exception

testTransitiveResolutionWhereAllArtifactsAreNotPresentInTheLocalRepositoryAndMustBeRetrievedFromTheRemoteRepository

public void testTransitiveResolutionWhereAllArtifactsAreNotPresentInTheLocalRepositoryAndMustBeRetrievedFromTheRemoteRepository()
                                                                                                                         throws Exception
Throws:
Exception

testResolutionFailureWhenArtifactNotPresentInRemoteRepository

public void testResolutionFailureWhenArtifactNotPresentInRemoteRepository()
                                                                   throws Exception
Throws:
Exception

testResolutionFailureWhenArtifactNotPresentInRemoteRepositoryWithMirrors

public void testResolutionFailureWhenArtifactNotPresentInRemoteRepositoryWithMirrors()
                                                                              throws Exception
Throws:
Exception

testResolutionOfAnArtifactWhereOneRemoteRepositoryIsBadButOneIsGood

public void testResolutionOfAnArtifactWhereOneRemoteRepositoryIsBadButOneIsGood()
                                                                         throws Exception
Throws:
Exception


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