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 788791 2009-06-26 17:55:26Z 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  Artifact createArtifact(String groupId, String artifactId, String version, String type)
           
protected  void setUp()
           
 void testResolutionFailureWhenArtifactNotPresentInRemoteRepository()
           
 void testResolutionFailureWhenArtifactNotPresentInRemoteRepositoryWithMirrors()
           
 void testResolutionFailureWhenMultipleArtifactsNotPresentInRemoteRepository()
           
 void testResolutionOfAnArtifactWhereOneRemoteRepositoryIsBadButOneIsGood()
           
 void testResolutionOfASingleArtifactWhereTheArtifactIsNotPresentLocallyAndMustBeRetrievedFromTheRemoteRepository()
           
 void testResolutionOfASingleArtifactWhereTheArtifactIsPresentInTheLocalRepository()
           
 void testResolveMultipleWithException()
          Test deadlocking in case a transfer error occurs within a group of multiple artifacts (MNG-4179).
 void testResolveOlderSpecificSnapshotVersionWhenNewerVersionAlreadyExistsAndBothAreInLocalRepository()
           
 void testResolveWithException()
          Test deadlocking (which occurs even with a single artifact in error).
 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 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

testResolutionFailureWhenMultipleArtifactsNotPresentInRemoteRepository

public void testResolutionFailureWhenMultipleArtifactsNotPresentInRemoteRepository()
                                                                            throws Exception
Throws:
Exception

testResolveWithException

public void testResolveWithException()
                              throws Exception
Test deadlocking (which occurs even with a single artifact in error).

Throws:
Exception

testResolveMultipleWithException

public void testResolveMultipleWithException()
                                      throws Exception
Test deadlocking in case a transfer error occurs within a group of multiple artifacts (MNG-4179).

Throws:
Exception

testResolveOlderSpecificSnapshotVersionWhenNewerVersionAlreadyExistsAndBothAreInLocalRepository

public void testResolveOlderSpecificSnapshotVersionWhenNewerVersionAlreadyExistsAndBothAreInLocalRepository()
                                                                                                     throws Exception
Throws:
Exception


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