Examples of ResolutionNode


Examples of org.apache.maven.artifact.resolver.ResolutionNode

     * b:1.0 -> a:2.0
     * </pre>
     */
    public void testDepth()
    {
        ResolutionNode a1n = new ResolutionNode( a1, Collections.EMPTY_LIST );
        ResolutionNode b1n = new ResolutionNode( b1, Collections.EMPTY_LIST );
        ResolutionNode a2n = new ResolutionNode( a2, Collections.EMPTY_LIST, b1n );
       
        assertResolveConflict( a2n, a1n, a2n );
    }
View Full Code Here

Examples of org.apache.maven.artifact.resolver.ResolutionNode

     * a:1.0
     * </pre>
     */
    public void testDepthReversed()
    {
        ResolutionNode b1n = new ResolutionNode( b1, Collections.EMPTY_LIST );
        ResolutionNode a2n = new ResolutionNode( a2, Collections.EMPTY_LIST, b1n );
        ResolutionNode a1n = new ResolutionNode( a1, Collections.EMPTY_LIST );
       
        assertResolveConflict( a2n, a2n, a1n );
    }
View Full Code Here

Examples of org.apache.maven.artifact.resolver.ResolutionNode

     * a:2.0
     * </pre>
     */
    public void testEqual()
    {
        ResolutionNode a1n = new ResolutionNode( a1, Collections.EMPTY_LIST );
        ResolutionNode a2n = new ResolutionNode( a2, Collections.EMPTY_LIST );
       
        assertResolveConflict( a2n, a1n, a2n );
    }
View Full Code Here

Examples of org.apache.maven.artifact.resolver.ResolutionNode

     * a:1.0
     * </pre>
     */
    public void testEqualReversed()
    {
        ResolutionNode a2n = new ResolutionNode( a2, Collections.EMPTY_LIST );
        ResolutionNode a1n = new ResolutionNode( a1, Collections.EMPTY_LIST );
       
        assertResolveConflict( a2n, a2n, a1n );
    }
View Full Code Here

Examples of org.apache.maven.artifact.resolver.ResolutionNode

     * b:1.0 -> a:2.0
     * </pre>
     */
    public void testDepth()
    {
        ResolutionNode a1n = new ResolutionNode( a1, Collections.EMPTY_LIST );
        ResolutionNode b1n = new ResolutionNode( b1, Collections.EMPTY_LIST );
        ResolutionNode a2n = new ResolutionNode( a2, Collections.EMPTY_LIST, b1n );
       
        assertResolveConflict( a1n, a1n, a2n );
    }
View Full Code Here

Examples of org.apache.maven.artifact.resolver.ResolutionNode

     * a:1.0
     * </pre>
     */
    public void testDepthReversed()
    {
        ResolutionNode b1n = new ResolutionNode( b1, Collections.EMPTY_LIST );
        ResolutionNode a2n = new ResolutionNode( a2, Collections.EMPTY_LIST, b1n );
        ResolutionNode a1n = new ResolutionNode( a1, Collections.EMPTY_LIST );
       
        assertResolveConflict( a1n, a2n, a1n );
    }
View Full Code Here

Examples of org.apache.maven.artifact.resolver.ResolutionNode

     * a:2.0
     * </pre>
     */
    public void testEqual()
    {
        ResolutionNode a1n = new ResolutionNode( a1, Collections.EMPTY_LIST );
        ResolutionNode a2n = new ResolutionNode( a2, Collections.EMPTY_LIST );
       
        assertResolveConflict( a1n, a1n, a2n );
    }
View Full Code Here

Examples of org.apache.maven.artifact.resolver.ResolutionNode

     * a:1.0
     * </pre>
     */
    public void testEqualReversed()
    {
        ResolutionNode a2n = new ResolutionNode( a2, Collections.EMPTY_LIST );
        ResolutionNode a1n = new ResolutionNode( a1, Collections.EMPTY_LIST );
       
        assertResolveConflict( a2n, a2n, a1n );
    }
View Full Code Here

Examples of org.apache.maven.artifact.resolver.ResolutionNode

        return conflictResolver;
    }
   
    protected void assertResolveConflict( ResolutionNode expectedNode, ResolutionNode actualNode1, ResolutionNode actualNode2 )
    {
        ResolutionNode resolvedNode = getConflictResolver().resolveConflict( actualNode1, actualNode2 );
       
        assertNotNull( "Expected resolvable", resolvedNode );
        assertEquals( "Resolution node", expectedNode, resolvedNode );
    }
View Full Code Here

Examples of org.apache.maven.artifact.resolver.ResolutionNode

        assertEquals( "Resolution node", expectedNode, resolvedNode );
    }

    protected void assertUnresolvableConflict( ResolutionNode actualNode1, ResolutionNode actualNode2 )
    {
        ResolutionNode resolvedNode = getConflictResolver().resolveConflict( actualNode1, actualNode2 );
       
        assertNull( "Expected unresolvable", resolvedNode );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.