org.apache.maven.repository.legacy.resolver
Class DefaultArtifactCollectorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.repository.legacy.resolver.DefaultArtifactCollectorTest
All Implemented Interfaces:
junit.framework.Test

public class DefaultArtifactCollectorTest
extends org.codehaus.plexus.PlexusTestCase

Test the default artifact collector.

Author:
Brett Porter

Constructor Summary
DefaultArtifactCollectorTest()
           
 
Method Summary
 void disabledtestCircularDependencyIncludingCurrentProject()
           
 void disabledtestCircularDependencyNotIncludingCurrentProject()
           
 void disabledtestOptionalNotTransitiveButVersionIsInfluential()
           
 void disabledtestResolveCorrectDependenciesWhenDifferentDependenciesOnNewest()
           
 void disabledtestResolveCorrectDependenciesWhenDifferentDependenciesOnNewestVersionReplaced()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testCollectChangesVersionOfOriginatingArtifactIfInDependencyManagementHasDifferentVersion()
           
 void testCompatibleRanges()
           
 void testIncompatibleRanges()
           
 void testOptionalIncludedAtRoot()
           
 void testOptionalNotTransitive()
           
 void testOverConstrainedVersionException()
           
 void testProvidedScopeNotTransitive()
           
 void testResolveCompileScopeOverProvidedScope()
           
 void testResolveCompileScopeOverRuntimeScope()
           
 void testResolveCompileScopeOverTestScope()
           
 void testResolveCorrectDependenciesWhenDifferentDependenciesOnNearest()
           
 void testResolveLocalNewestIsLocal()
           
 void testResolveLocalOldestIsLocal()
           
 void testResolveLocalWithNewerVersionButLesserScope()
           
 void testResolveLocalWithNewerVersionButLesserScopeResolvedFirst()
           
 void testResolveManagedVersion()
           
 void testResolveNearestNewestIsNearest()
           
 void testResolveNearestOldestIsNearest()
           
 void testResolveNearestWithRanges()
           
 void testResolveRangeWithManagedVersion()
           
 void testResolveRuntimeScopeOverProvidedScope()
           
 void testResolveRuntimeScopeOverTestScope()
           
 void testResolveWithFilter()
           
 void testScopeUpdate()
           
 void testSnapshotNotIncluded()
           
 void testTestScopeNotTransitive()
           
 void testUnboundedRangeAboveLastRelease()
           
 void testUnboundedRangeBelowLastRelease()
           
 void testUnboundedRangeWhenVersionUnavailable()
           
 
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

DefaultArtifactCollectorTest

public DefaultArtifactCollectorTest()
Method Detail

setUp

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

tearDown

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

disabledtestCircularDependencyNotIncludingCurrentProject

public void disabledtestCircularDependencyNotIncludingCurrentProject()
                                                              throws ArtifactResolutionException,
                                                                     InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

disabledtestCircularDependencyIncludingCurrentProject

public void disabledtestCircularDependencyIncludingCurrentProject()
                                                           throws ArtifactResolutionException,
                                                                  InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveWithFilter

public void testResolveWithFilter()
                           throws ArtifactResolutionException,
                                  InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveCorrectDependenciesWhenDifferentDependenciesOnNearest

public void testResolveCorrectDependenciesWhenDifferentDependenciesOnNearest()
                                                                      throws ArtifactResolutionException,
                                                                             InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

disabledtestResolveCorrectDependenciesWhenDifferentDependenciesOnNewest

public void disabledtestResolveCorrectDependenciesWhenDifferentDependenciesOnNewest()
                                                                             throws ArtifactResolutionException,
                                                                                    InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

disabledtestResolveCorrectDependenciesWhenDifferentDependenciesOnNewestVersionReplaced

public void disabledtestResolveCorrectDependenciesWhenDifferentDependenciesOnNewestVersionReplaced()
                                                                                            throws ArtifactResolutionException,
                                                                                                   InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveNearestNewestIsNearest

public void testResolveNearestNewestIsNearest()
                                       throws ArtifactResolutionException,
                                              InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveNearestOldestIsNearest

public void testResolveNearestOldestIsNearest()
                                       throws ArtifactResolutionException,
                                              InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveLocalNewestIsLocal

public void testResolveLocalNewestIsLocal()
                                   throws ArtifactResolutionException,
                                          InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveLocalOldestIsLocal

public void testResolveLocalOldestIsLocal()
                                   throws ArtifactResolutionException,
                                          InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveLocalWithNewerVersionButLesserScope

public void testResolveLocalWithNewerVersionButLesserScope()
                                                    throws ArtifactResolutionException,
                                                           InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveLocalWithNewerVersionButLesserScopeResolvedFirst

public void testResolveLocalWithNewerVersionButLesserScopeResolvedFirst()
                                                                 throws ArtifactResolutionException,
                                                                        InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveNearestWithRanges

public void testResolveNearestWithRanges()
                                  throws ArtifactResolutionException,
                                         InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveRangeWithManagedVersion

public void testResolveRangeWithManagedVersion()
                                        throws ArtifactResolutionException,
                                               InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testCompatibleRanges

public void testCompatibleRanges()
                          throws ArtifactResolutionException,
                                 InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testIncompatibleRanges

public void testIncompatibleRanges()
                            throws ArtifactResolutionException,
                                   InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testUnboundedRangeWhenVersionUnavailable

public void testUnboundedRangeWhenVersionUnavailable()
                                              throws ArtifactResolutionException,
                                                     InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testUnboundedRangeBelowLastRelease

public void testUnboundedRangeBelowLastRelease()
                                        throws ArtifactResolutionException,
                                               InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testUnboundedRangeAboveLastRelease

public void testUnboundedRangeAboveLastRelease()
                                        throws ArtifactResolutionException,
                                               InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveManagedVersion

public void testResolveManagedVersion()
                               throws ArtifactResolutionException,
                                      InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testCollectChangesVersionOfOriginatingArtifactIfInDependencyManagementHasDifferentVersion

public void testCollectChangesVersionOfOriginatingArtifactIfInDependencyManagementHasDifferentVersion()
                                                                                               throws ArtifactResolutionException,
                                                                                                      InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveCompileScopeOverTestScope

public void testResolveCompileScopeOverTestScope()
                                          throws ArtifactResolutionException,
                                                 InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveRuntimeScopeOverTestScope

public void testResolveRuntimeScopeOverTestScope()
                                          throws ArtifactResolutionException,
                                                 InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveCompileScopeOverRuntimeScope

public void testResolveCompileScopeOverRuntimeScope()
                                             throws ArtifactResolutionException,
                                                    InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveCompileScopeOverProvidedScope

public void testResolveCompileScopeOverProvidedScope()
                                              throws ArtifactResolutionException,
                                                     InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testResolveRuntimeScopeOverProvidedScope

public void testResolveRuntimeScopeOverProvidedScope()
                                              throws ArtifactResolutionException,
                                                     InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testProvidedScopeNotTransitive

public void testProvidedScopeNotTransitive()
                                    throws ArtifactResolutionException,
                                           InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testOptionalNotTransitive

public void testOptionalNotTransitive()
                               throws ArtifactResolutionException,
                                      InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testOptionalIncludedAtRoot

public void testOptionalIncludedAtRoot()
                                throws ArtifactResolutionException,
                                       InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testScopeUpdate

public void testScopeUpdate()
                     throws InvalidVersionSpecificationException,
                            ArtifactResolutionException
Throws:
InvalidVersionSpecificationException
ArtifactResolutionException

disabledtestOptionalNotTransitiveButVersionIsInfluential

public void disabledtestOptionalNotTransitiveButVersionIsInfluential()
                                                              throws ArtifactResolutionException,
                                                                     InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testTestScopeNotTransitive

public void testTestScopeNotTransitive()
                                throws ArtifactResolutionException,
                                       InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testSnapshotNotIncluded

public void testSnapshotNotIncluded()
                             throws ArtifactResolutionException,
                                    InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException

testOverConstrainedVersionException

public void testOverConstrainedVersionException()
                                         throws ArtifactResolutionException,
                                                InvalidVersionSpecificationException
Throws:
ArtifactResolutionException
InvalidVersionSpecificationException


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