org.apache.maven.project.inheritance.t10
Class ProjectInheritanceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.project.AbstractMavenProjectTestCase
                  extended by org.apache.maven.project.inheritance.AbstractProjectInheritanceTestCase
                      extended by org.apache.maven.project.inheritance.t10.ProjectInheritanceTest
All Implemented Interfaces:
Test

public class ProjectInheritanceTest
extends AbstractProjectInheritanceTestCase

Verifies scope inheritence of direct and transitive dependencies. Should show three behaviors: 1. dependencyManagement should override the scope of transitive dependencies. 2. Direct dependencies should override the scope of dependencyManagement. 3. Direct dependencies should inherit scope from dependencyManagement when they do not explicitly state a scope.

Author:
Patrick Schneider

Field Summary
 
Fields inherited from class org.apache.maven.project.AbstractMavenProjectTestCase
projectBuilder, repositorySystem
 
Constructor Summary
ProjectInheritanceTest()
           
 
Method Summary
 void testDependencyManagementOverridesTransitiveDependencyVersion()
           
 
Methods inherited from class org.apache.maven.project.inheritance.AbstractProjectInheritanceTestCase
getLocalRepositoryPath, getTestSeries, projectFile, projectFile
 
Methods inherited from class org.apache.maven.project.AbstractMavenProjectTestCase
getCustomConfigurationName, getFileForClasspathResource, getLocalRepository, getProject, getProjectBuilder, getProjectWithDependencies, initRepoSession, setUp, tearDown
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, 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

ProjectInheritanceTest

public ProjectInheritanceTest()
Method Detail

testDependencyManagementOverridesTransitiveDependencyVersion

public void testDependencyManagementOverridesTransitiveDependencyVersion()
                                                                  throws Exception
Throws:
Exception


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