org.apache.maven.it
Class MavenITmng3461MirrorMatchingTest

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.MavenITmng3461MirrorMatchingTest
All Implemented Interfaces:
Test

public class MavenITmng3461MirrorMatchingTest
extends AbstractMavenIntegrationTestCase

This is a test set for MNG-3461.

Version:
$Id: MavenITmng3461MirrorMatchingTest.java 981712 2010-08-03 00:36:19Z bentmann $
Author:
Benjamin Bentmann

Field Summary
 
Fields inherited from class org.apache.maven.it.AbstractMavenIntegrationTestCase
ALL_MAVEN_VERSIONS
 
Constructor Summary
MavenITmng3461MirrorMatchingTest()
           
 
Method Summary
 void testitExactMatchDominatesWildcard()
          Test that mirror definitions are properly evaluated.
 void testitExternalWildcard()
          Test that mirror definitions are properly evaluated.
 void testitNonGreedyWildcard()
          Test that mirror definitions are properly evaluated.
 
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

MavenITmng3461MirrorMatchingTest

public MavenITmng3461MirrorMatchingTest()
Method Detail

testitExactMatchDominatesWildcard

public void testitExactMatchDominatesWildcard()
                                       throws Exception
Test that mirror definitions are properly evaluated. In particular, an exact match by id should always win over wildcard matches.

Throws:
Exception

testitExternalWildcard

public void testitExternalWildcard()
                            throws Exception
Test that mirror definitions are properly evaluated. In particular, the wildcard external:* should not match file:// and localhost repos but only external repos.

Throws:
Exception

testitNonGreedyWildcard

public void testitNonGreedyWildcard()
                             throws Exception
Test that mirror definitions are properly evaluated. In particular, the wildcards within a single mirrorOf spec should not be greedy.

Throws:
Exception


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