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

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
All Implemented Interfaces:
Test
Direct Known Subclasses:
FarthestConflictResolverTest, NearestConflictResolverTest, NewestConflictResolverTest, OldestConflictResolverTest

public abstract class AbstractConflictResolverTest
extends org.codehaus.plexus.PlexusTestCase

Provides a basis for testing conflict resolvers.

Author:
Mark Hobson

Field Summary
protected  Artifact a1
           
protected  Artifact a2
           
protected  Artifact b1
           
 
Constructor Summary
AbstractConflictResolverTest(String roleHint)
           
 
Method Summary
protected  void assertResolveConflict(ResolutionNode expectedNode, ResolutionNode actualNode1, ResolutionNode actualNode2)
           
protected  void assertUnresolvableConflict(ResolutionNode actualNode1, ResolutionNode actualNode2)
           
protected  Artifact createArtifact(String id, String version)
           
protected  Artifact createArtifact(String id, String version, boolean optional)
           
protected  Artifact createArtifact(String id, String version, String scope)
           
protected  Artifact createArtifact(String id, String version, String scope, String inheritedScope, boolean optional)
           
protected  ConflictResolver getConflictResolver()
           
protected  void setUp()
           
protected  void 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
 

Field Detail

a1

protected Artifact a1

a2

protected Artifact a2

b1

protected Artifact b1
Constructor Detail

AbstractConflictResolverTest

public AbstractConflictResolverTest(String roleHint)
                             throws Exception
Throws:
Exception
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class org.codehaus.plexus.PlexusTestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class org.codehaus.plexus.PlexusTestCase
Throws:
Exception

getConflictResolver

protected ConflictResolver getConflictResolver()

assertResolveConflict

protected void assertResolveConflict(ResolutionNode expectedNode,
                                     ResolutionNode actualNode1,
                                     ResolutionNode actualNode2)

assertUnresolvableConflict

protected void assertUnresolvableConflict(ResolutionNode actualNode1,
                                          ResolutionNode actualNode2)

createArtifact

protected Artifact createArtifact(String id,
                                  String version)
                           throws InvalidVersionSpecificationException
Throws:
InvalidVersionSpecificationException

createArtifact

protected Artifact createArtifact(String id,
                                  String version,
                                  boolean optional)
                           throws InvalidVersionSpecificationException
Throws:
InvalidVersionSpecificationException

createArtifact

protected Artifact createArtifact(String id,
                                  String version,
                                  String scope)
                           throws InvalidVersionSpecificationException
Throws:
InvalidVersionSpecificationException

createArtifact

protected Artifact createArtifact(String id,
                                  String version,
                                  String scope,
                                  String inheritedScope,
                                  boolean optional)
                           throws InvalidVersionSpecificationException
Throws:
InvalidVersionSpecificationException


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