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, release
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
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
protected void setUp() throws Exception
setUp
in class org.codehaus.plexus.PlexusTestCase
Exception
protected void tearDown() throws Exception
tearDown
in class org.codehaus.plexus.PlexusTestCase
Exception
public void testProjectWithDependency() throws DependencyTreeBuilderException
g:p:t:1 \- g:a:t:1
DependencyTreeBuilderException
public void testProjectWithTransitiveDependency() throws DependencyTreeBuilderException
g:p:t:1 \- g:a:t:1 \- g:b:t:1
DependencyTreeBuilderException
public 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)
DependencyTreeBuilderException
public 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)
DependencyTreeBuilderException
public 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
DependencyTreeBuilderException
public 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)
DependencyTreeBuilderException
public 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)
DependencyTreeBuilderException
public 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
DependencyTreeBuilderException
public void testProjectWithManagedTransitiveDependencyVersion() throws DependencyTreeBuilderException
g:p:t:1 \- g:a:t:1 \- g:b:t:2 (version managed from 1)
DependencyTreeBuilderException
public void testProjectWithManagedTransitiveDependencyScope() throws DependencyTreeBuilderException
g:p:t:1 \- g:a:t:1 \- g:b:t:1:test (scope managed from compile)
DependencyTreeBuilderException
public 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)
DependencyTreeBuilderException
public 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)
DependencyTreeBuilderException
public void testProjectWithVersionRange() throws org.apache.maven.artifact.versioning.InvalidVersionSpecificationException, DependencyTreeBuilderException
g:p:t:1 \- g:a:t:1
org.apache.maven.artifact.versioning.InvalidVersionSpecificationException
DependencyTreeBuilderException
Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.