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

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.FarthestConflictResolverTest
All Implemented Interfaces:
junit.framework.Test

public class FarthestConflictResolverTest
extends AbstractConflictResolverTest

Tests FarthestConflictResolver.

Author:
Mark Hobson
See Also:
FarthestConflictResolver

Field Summary
 
Fields inherited from class org.apache.maven.repository.legacy.resolver.conflict.AbstractConflictResolverTest
a1, a2, b1
 
Constructor Summary
FarthestConflictResolverTest()
           
 
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:1.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
customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, teardownContainer
 
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

FarthestConflictResolverTest

public FarthestConflictResolverTest()
                             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:1.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–2013 The Apache Software Foundation. All rights reserved.