public class DefaultDependencyTreeBuilderTest
extends org.codehaus.plexus.PlexusTestCase
DefaultDependencyTreeBuilder.DefaultDependencyTreeBuilder| Constructor and Description |
|---|
DefaultDependencyTreeBuilderTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testProjectWithConflictDependencyScopeCurrentPom()
Tests building a tree for a project with a dependency that has conflicting scopes, where the nearest is not
broadened since it is defined in the top-level POM:
|
void |
testProjectWithConflictDependencyScopeFirstWins()
Tests building a tree for a project with a dependency that has conflicting scopes, where the winner is
encountered first:
|
void |
testProjectWithConflictDependencyScopeLastWins()
Tests building a tree for a project with a dependency that has conflicting scopes, where the winner is
encountered last:
|
void |
testProjectWithConflictDependencyVersionFirstWins()
Tests building a tree for a project with a dependency that has conflicting versions, where the nearest is
encountered first:
|
void |
testProjectWithConflictDependencyVersionLastWins()
Tests building a tree for a project with a dependency that has conflicting versions, where the nearest is
encountered last:
|
void |
testProjectWithDependency()
Tests building a tree for a project with one dependency:
|
void |
testProjectWithDuplicateDependency()
Tests building a tree for a project with a duplicate transitive dependency:
|
void |
testProjectWithManagedTransitiveDependencyScope()
Tests building a tree for a project with one transitive dependency whose scope is fixed in dependency management:
|
void |
testProjectWithManagedTransitiveDependencyVersion()
Tests building a tree for a project with one transitive dependency whose version is fixed in dependency
management:
|
void |
testProjectWithManagedTransitiveDependencyVersionAndConflictDependencyVersion()
Tests building a tree for a project with a dependency that has conflicting versions and the version is also fixed
in dependency management:
|
void |
testProjectWithManagedTransitiveDependencyVersionAndScope()
Tests building a tree for a project with one transitive dependency whose version and scope are fixed in
dependency management:
|
void |
testProjectWithTransitiveDependency()
Tests building a tree for a project with one transitive dependency:
|
void |
testProjectWithVersionRange()
Tests building a tree for a project with a dependency with version range
|
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, releasecountTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, failprotected void setUp()
throws Exception
setUp in class org.codehaus.plexus.PlexusTestCaseExceptionprotected void tearDown()
throws Exception
tearDown in class org.codehaus.plexus.PlexusTestCaseExceptionpublic void testProjectWithDependency()
throws DependencyTreeBuilderException
g:p:t:1 \- g:a:t:1
DependencyTreeBuilderExceptionpublic void testProjectWithTransitiveDependency()
throws DependencyTreeBuilderException
g:p:t:1
\- g:a:t:1
\- g:b:t:1
DependencyTreeBuilderExceptionpublic void testProjectWithDuplicateDependency()
throws DependencyTreeBuilderException
g:p:t:1
+- g:a:t:1
| \- g:c:t:1
\- g:b:t:1
\- (g:c:t:1 - omitted for duplicate)
DependencyTreeBuilderExceptionpublic void testProjectWithConflictDependencyVersionFirstWins()
throws DependencyTreeBuilderException
g:p:t:1
+- g:a:t:1
\- g:b:t:1
\- (g:a:t:2 - omitted for conflict with 1)
DependencyTreeBuilderExceptionpublic void testProjectWithConflictDependencyVersionLastWins()
throws DependencyTreeBuilderException
g:p:t:1 +- g:a:t:1 | \- (g:b:t:2 - omitted for conflict with 1) \- g:b:t:1
DependencyTreeBuilderExceptionpublic void testProjectWithConflictDependencyScopeCurrentPom()
throws DependencyTreeBuilderException
g:p:t:1
+- g:b:t:1:test (scope not updated to compile)
\- g:a:t:1
\- (g:b:t:1:compile - omitted for duplicate)
DependencyTreeBuilderExceptionpublic void testProjectWithConflictDependencyScopeFirstWins()
throws DependencyTreeBuilderException
g:p:t:1
\- g:a:t:1
+- g:b:t:1
| \- g:c:t:1:compile
\- (g:c:t:1:compile - scope updated from test; omitted for duplicate)
DependencyTreeBuilderExceptionpublic void testProjectWithConflictDependencyScopeLastWins()
throws DependencyTreeBuilderException
g:p:t:1
\- g:a:t:1
+- (g:c:t:1:compile - scope updated from test; omitted for duplicate)
\- g:b:t:1
\- g:c:t:1:compile
DependencyTreeBuilderExceptionpublic void testProjectWithManagedTransitiveDependencyVersion()
throws DependencyTreeBuilderException
g:p:t:1
\- g:a:t:1
\- g:b:t:2 (version managed from 1)
DependencyTreeBuilderExceptionpublic void testProjectWithManagedTransitiveDependencyScope()
throws DependencyTreeBuilderException
g:p:t:1
\- g:a:t:1
\- g:b:t:1:test (scope managed from compile)
DependencyTreeBuilderExceptionpublic void testProjectWithManagedTransitiveDependencyVersionAndScope()
throws DependencyTreeBuilderException
g:p:t:1
\- g:a:t:1
\- g:b:t:2:test (version managed from 1; scope managed from compile)
DependencyTreeBuilderExceptionpublic void testProjectWithManagedTransitiveDependencyVersionAndConflictDependencyVersion()
throws DependencyTreeBuilderException
g:p:t:1
+- g:a:t:1
\- g:b:t:1
\- (g:a:t:3 - version managed from 2; omitted for conflict with 1)
DependencyTreeBuilderExceptionpublic void testProjectWithVersionRange()
throws org.apache.maven.artifact.versioning.InvalidVersionSpecificationException,
DependencyTreeBuilderException
g:p:t:1 \- g:a:t:1
org.apache.maven.artifact.versioning.InvalidVersionSpecificationExceptionDependencyTreeBuilderExceptionCopyright © 2002–2014 The Apache Software Foundation. All rights reserved.