org.apache.maven.repository.legacy.resolver.conflict
Class NewestConflictResolverTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.repository.legacy.resolver.conflict.AbstractConflictResolverTest
                  extended by org.apache.maven.repository.legacy.resolver.conflict.NewestConflictResolverTest
All Implemented Interfaces:
junit.framework.Test

public class NewestConflictResolverTest
extends AbstractConflictResolverTest

Tests NewestConflictResolver.

Version:
$Id: NewestConflictResolverTest.java 789077 2009-06-28 09:39:49Z jvanzyl $
Author:
Mark Hobson
See Also:
NewestConflictResolver

Field Summary
 
Fields inherited from class org.apache.maven.repository.legacy.resolver.conflict.AbstractConflictResolverTest
a1, a2, b1
 
Constructor Summary
NewestConflictResolverTest()
           
 
Method Summary
 void testDepth()
          Tests that a:2.0 wins in the scenario: a:1.0 b:1.0 -> a:2.0
 void testDepthReversed()
          Tests that a:2.0 wins in the scenario: b:1.0 -> a:2.0 a:1.0
 void testEqual()
          Tests that a:2.0 wins in the scenario: a:1.0 a:2.0
 void testEqualReversed()
          Tests that a:2.0 wins in the scenario: a:2.0 a:1.0
 
Methods inherited from class org.apache.maven.repository.legacy.resolver.conflict.AbstractConflictResolverTest
assertResolveConflict, assertUnresolvableConflict, createArtifact, createArtifact, createArtifact, createArtifact, getConflictResolver, setUp, tearDown
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewestConflictResolverTest

public NewestConflictResolverTest()
                           throws Exception
Throws:
Exception
Method Detail

testDepth

public void testDepth()
Tests that a:2.0 wins in the scenario:
 a:1.0
 b:1.0 -> a:2.0
 


testDepthReversed

public void testDepthReversed()
Tests that a:2.0 wins in the scenario:
 b:1.0 -> a:2.0
 a:1.0
 


testEqual

public void testEqual()
Tests that a:2.0 wins in the scenario:
 a:1.0
 a:2.0
 


testEqualReversed

public void testEqualReversed()
Tests that a:2.0 wins in the scenario:
 a:2.0
 a:1.0
 



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