org.apache.maven.it
Class MavenITmng1895ScopeConflictResolutionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.it.AbstractMavenIntegrationTestCase
              extended by org.apache.maven.it.MavenITmng1895ScopeConflictResolutionTest
All Implemented Interfaces:
Test

public class MavenITmng1895ScopeConflictResolutionTest
extends AbstractMavenIntegrationTestCase

This is a test set for MNG-1895.

Author:
Benjamin Bentmann

Field Summary
 
Fields inherited from class org.apache.maven.it.AbstractMavenIntegrationTestCase
ALL_MAVEN_VERSIONS
 
Constructor Summary
MavenITmng1895ScopeConflictResolutionTest()
           
 
Method Summary
 void testitCompileVsProvided()
          Verify that for a dependency being referenced in compile and in provided scope, compile scope wins.
 void testitCompileVsRuntime()
          Verify that for a dependency being referenced in compile and in runtime scope, compile scope wins.
 void testitCompileVsTest()
          Verify that for a dependency being referenced in compile and in test scope, compile scope wins.
 void testitDirectVsIndirect()
          Verify that for a dependency being referenced in two different scopes, the scope given directly in the POM always wins, even if weaker than the scope of the transitive dependency.
 void testitProvidedVsTest()
          Verify that for a dependency being referenced in provided and in test scope, provided scope wins.
 void testitRuntimeVsProvided()
          Verify that for a dependency being referenced in runtime and in provided scope, runtime scope wins.
 void testitRuntimeVsTest()
          Verify that for a dependency being referenced in runtime and in test scope, runtime scope wins.
 
Methods inherited from class org.apache.maven.it.AbstractMavenIntegrationTestCase
matchesVersionRange, newVerifier, newVerifier, newVerifier, newVerifier, requiresJavaVersion, requiresMavenVersion, runTest, setupLocalRepo
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, setUp, tearDown, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MavenITmng1895ScopeConflictResolutionTest

public MavenITmng1895ScopeConflictResolutionTest()
Method Detail

testitDirectVsIndirect

public void testitDirectVsIndirect()
                            throws Exception
Verify that for a dependency being referenced in two different scopes, the scope given directly in the POM always wins, even if weaker than the scope of the transitive dependency.

Throws:
Exception

testitCompileVsRuntime

public void testitCompileVsRuntime()
                            throws Exception
Verify that for a dependency being referenced in compile and in runtime scope, compile scope wins.

Throws:
Exception

testitCompileVsTest

public void testitCompileVsTest()
                         throws Exception
Verify that for a dependency being referenced in compile and in test scope, compile scope wins.

Throws:
Exception

testitCompileVsProvided

public void testitCompileVsProvided()
                             throws Exception
Verify that for a dependency being referenced in compile and in provided scope, compile scope wins.

Throws:
Exception

testitRuntimeVsTest

public void testitRuntimeVsTest()
                         throws Exception
Verify that for a dependency being referenced in runtime and in test scope, runtime scope wins.

Throws:
Exception

testitRuntimeVsProvided

public void testitRuntimeVsProvided()
                             throws Exception
Verify that for a dependency being referenced in runtime and in provided scope, runtime scope wins.

Throws:
Exception

testitProvidedVsTest

public void testitProvidedVsTest()
                          throws Exception
Verify that for a dependency being referenced in provided and in test scope, provided scope wins.

Throws:
Exception


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