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:
Test

public class ArtifactResolverTest
extends AbstractArtifactComponentTestCase

Author:
Jason van Zyl

Field Summary
 
Fields inherited from class org.apache.maven.artifact.AbstractArtifactComponentTestCase
artifactFactory, artifactRepositoryFactory
 
Constructor Summary
ArtifactResolverTest()
           
 
Method Summary
protected  String component()
           
protected  Artifact createArtifact(String groupId, String artifactId, String version, String type)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testResolutionFailureWhenArtifactNotPresentInRemoteRepository()
           
 void testResolutionOfAnArtifactWhereOneRemoteRepositoryIsBadButOneIsGood()
           
 void testResolutionOfASingleArtifactWhereTheArtifactIsNotPresentLocallyAndMustBeRetrievedFromTheRemoteRepository()
           
 void testResolutionOfASingleArtifactWhereTheArtifactIsPresentInTheLocalRepository()
           
 void testTransitiveResolutionOrder()
           
 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, initRepoSession, localRepository, remoteRepositories, remoteRepository
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer
 
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, failNotEquals, failNotSame, failSame
 
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 AbstractArtifactComponentTestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class AbstractArtifactComponentTestCase
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 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

testResolutionOfAnArtifactWhereOneRemoteRepositoryIsBadButOneIsGood

public void testResolutionOfAnArtifactWhereOneRemoteRepositoryIsBadButOneIsGood()
                                                                         throws Exception
Throws:
Exception

testTransitiveResolutionOrder

public void testTransitiveResolutionOrder()
                                   throws Exception
Throws:
Exception


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