|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.shared.dependency.tree.DefaultDependencyTreeBuilderTest
public class DefaultDependencyTreeBuilderTest
Tests DefaultDependencyTreeBuilder
.
DefaultDependencyTreeBuilder
Constructor Summary | |
---|---|
DefaultDependencyTreeBuilderTest()
|
Method Summary | |
---|---|
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: 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) |
void |
testProjectWithConflictDependencyScopeFirstWins()
Tests building a tree for a project with a dependency that has conflicting scopes, where the winner is encountered first: 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) |
void |
testProjectWithConflictDependencyScopeLastWins()
Tests building a tree for a project with a dependency that has conflicting scopes, where the winner is encountered last: 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 |
void |
testProjectWithConflictDependencyVersionFirstWins()
Tests building a tree for a project with a dependency that has conflicting versions, where the nearest is encountered first: g:p:t:1 +- g:a:t:1 \- g:b:t:1 \- (g:a:t:2 - omitted for conflict with 1) |
void |
testProjectWithConflictDependencyVersionLastWins()
Tests building a tree for a project with a dependency that has conflicting versions, where the nearest is encountered last: g:p:t:1 +- g:a:t:1 | \- (g:b:t:2 - omitted for conflict with 1) \- g:b:t:1 |
void |
testProjectWithDependency()
Tests building a tree for a project with one dependency: g:p:t:1 \- g:a:t:1 |
void |
testProjectWithDuplicateDependency()
Tests building a tree for a project with a duplicate transitive dependency: g:p:t:1 +- g:a:t:1 | \- g:c:t:1 \- g:b:t:1 \- (g:c:t:1 - omitted for duplicate) |
void |
testProjectWithManagedTransitiveDependencyScope()
Tests building a tree for a project with one transitive dependency whose scope is fixed in dependency management: g:p:t:1 \- g:a:t:1 \- g:b:t:1:test (scope managed from compile) |
void |
testProjectWithManagedTransitiveDependencyVersion()
Tests building a tree for a project with one transitive dependency whose version is fixed in dependency management: g:p:t:1 \- g:a:t:1 \- g:b:t:2 (version managed from 1) |
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: 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) |
void |
testProjectWithManagedTransitiveDependencyVersionAndScope()
Tests building a tree for a project with one transitive dependency whose version and scope are fixed in dependency management: g:p:t:1 \- g:a:t:1 \- g:b:t:2:test (version managed from 1; scope managed from compile) |
void |
testProjectWithTransitiveDependency()
Tests building a tree for a project with one transitive dependency: g:p:t:1 \- g:a:t:1 \- g:b:t:1 |
void |
testProjectWithVersionRange()
Tests building a tree for a project with a dependency with version range g:p:t:1 \- g:a:t:1 |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultDependencyTreeBuilderTest()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |