org.apache.maven.artifact.manager
Class DefaultWagonManagerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.artifact.manager.DefaultWagonManagerTest
All Implemented Interfaces:
junit.framework.Test

public class DefaultWagonManagerTest
extends org.codehaus.plexus.PlexusTestCase

Version:
$Id: DefaultWagonManagerTest.java 798691 2009-07-28 19:57:44Z brett $
Author:
Michal Maczka

Field Summary
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
DefaultWagonManagerTest()
           
 
Method Summary
protected  void setUp()
           
 void testAddMirrorWithNullRepositoryId()
           
 void testChecksumVerification()
          Checks the verification of checksums.
 void testDefaultWagonManager()
           
 void testExternalURL()
          checks the handling of urls
 void testGetArtifactSha1MissingMd5Present()
           
 void testGetWagonMultithreaded()
           
 void testGetWagonRepository()
           
 void testGetWagonRepositoryNullProtocol()
           
 void testMirrorLookup()
          Check that lookups with exact matches work and that no matches don't corrupt the repo.
 void testMirrorStopOnFirstMatch()
          Check that first match wins
 void testMirrorWildcardLookup()
          Check that wildcards don't override exact id matches.
 void testPatterns()
          Check that patterns are processed correctly Valid patterns: * = everything external:* = everything not on the localhost and not file based. repo,repo1 = repo or repo1 *,!
 void testPatternsWithExternal()
          make sure the external if is fully exercised.
 void testWagonWithImplHint()
           
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDown
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultWagonManagerTest

public DefaultWagonManagerTest()
Method Detail

setUp

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

testAddMirrorWithNullRepositoryId

public void testAddMirrorWithNullRepositoryId()

testGetArtifactSha1MissingMd5Present

public void testGetArtifactSha1MissingMd5Present()
                                          throws IOException,
                                                 org.apache.maven.wagon.UnsupportedProtocolException,
                                                 org.apache.maven.wagon.TransferFailedException,
                                                 org.apache.maven.wagon.ResourceDoesNotExistException
Throws:
IOException
org.apache.maven.wagon.UnsupportedProtocolException
org.apache.maven.wagon.TransferFailedException
org.apache.maven.wagon.ResourceDoesNotExistException

testExternalURL

public void testExternalURL()
checks the handling of urls


testMirrorLookup

public void testMirrorLookup()
Check that lookups with exact matches work and that no matches don't corrupt the repo.


testMirrorWildcardLookup

public void testMirrorWildcardLookup()
Check that wildcards don't override exact id matches.


testPatterns

public void testPatterns()
Check that patterns are processed correctly Valid patterns: * = everything external:* = everything not on the localhost and not file based. repo,repo1 = repo or repo1 *,!repo1 = everything except repo1


testPatternsWithExternal

public void testPatternsWithExternal()
make sure the external if is fully exercised. We can assume file and ips are also handled because they have a separate test above.


testMirrorStopOnFirstMatch

public void testMirrorStopOnFirstMatch()
Check that first match wins


testDefaultWagonManager

public void testDefaultWagonManager()
                             throws Exception
Throws:
Exception

testGetWagonRepository

public void testGetWagonRepository()
                            throws Exception
Throws:
Exception

testGetWagonRepositoryNullProtocol

public void testGetWagonRepositoryNullProtocol()
                                        throws Exception
Throws:
Exception

testGetWagonMultithreaded

public void testGetWagonMultithreaded()
                               throws Throwable
Throws:
Throwable

testChecksumVerification

public void testChecksumVerification()
                              throws Exception
Checks the verification of checksums.

Throws:
Exception

testWagonWithImplHint

public void testWagonWithImplHint()
                           throws Exception
Throws:
Exception


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