org.apache.maven.wagon.tck.http
Class GetWagonTests

java.lang.Object
  extended by org.apache.maven.wagon.tck.http.HttpWagonTests
      extended by org.apache.maven.wagon.tck.http.GetWagonTests
Direct Known Subclasses:
HttpsGetWagonTests

public class GetWagonTests
extends HttpWagonTests


Field Summary
 
Fields inherited from class org.apache.maven.wagon.tck.http.HttpWagonTests
logger
 
Constructor Summary
GetWagonTests()
           
 
Method Summary
 void basic()
           
 void error()
           
 void forbidden()
           
 void highLatencyHighTimeout()
           
 void highLatencyLowTimeout()
           
 void infinitePermanentMove()
           
 void infiniteTemporaryMove()
           
 void inifiniteLatencyTimeout()
           
 void missing()
           
 void nonExistentHost()
           
 void oneLevelPermanentMove()
           
 void oneLevelTemporaryMove()
           
 void permanentMove_TooManyRedirects_limit20()
          NOTE: This test depends on a WagonTestCaseConfigurator configuration to limit redirects to 20.
 void proxied()
           
 void proxyTimeout()
           
 void sixLevelPermanentMove()
           
 void sixLevelTemporaryMove()
           
 void successfulAuthentication()
           
 void temporaryMove_TooManyRedirects_limit20()
          NOTE: This test depends on a WagonTestCaseConfigurator configuration to limit redirects to 20.
protected  void testAuthFailure(String path, AuthenticationInfo info)
           
protected  void testErrorHandling(int code)
           
protected  void testSuccessfulGet(String path)
           
protected  void testSuccessfulGet(String path, String checkPath)
           
 void unsuccessfulAuthentication()
           
 
Methods inherited from class org.apache.maven.wagon.tck.http.HttpWagonTests
addNotificationTarget, afterAll, afterEach, beforeAll, beforeEach, getBaseUrl, getConfigurator, getContainer, getPort, getPortPropertyValue, getRepo, getServerFixture, getTmpfiles, getWagon, initTest, initTest, isSsl, isSupported, newProxyInfo, newTempFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetWagonTests

public GetWagonTests()
Method Detail

basic

public void basic()
           throws ConnectionException,
                  AuthenticationException,
                  org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                  IOException,
                  TransferFailedException,
                  ResourceDoesNotExistException,
                  AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException

proxied

public void proxied()
             throws ConnectionException,
                    AuthenticationException,
                    org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                    IOException,
                    TransferFailedException,
                    ResourceDoesNotExistException,
                    AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException

highLatencyHighTimeout

public void highLatencyHighTimeout()
                            throws ConnectionException,
                                   AuthenticationException,
                                   org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                   IOException,
                                   TransferFailedException,
                                   ResourceDoesNotExistException,
                                   AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException

highLatencyLowTimeout

public void highLatencyLowTimeout()
                           throws ConnectionException,
                                  AuthenticationException,
                                  org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                  IOException,
                                  TransferFailedException,
                                  ResourceDoesNotExistException,
                                  AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException

inifiniteLatencyTimeout

public void inifiniteLatencyTimeout()
                             throws ConnectionException,
                                    AuthenticationException,
                                    org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                    IOException,
                                    TransferFailedException,
                                    ResourceDoesNotExistException,
                                    AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException

nonExistentHost

public void nonExistentHost()
                     throws ConnectionException,
                            AuthenticationException,
                            org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                            IOException,
                            ResourceDoesNotExistException,
                            AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
ResourceDoesNotExistException
AuthorizationException

oneLevelPermanentMove

public void oneLevelPermanentMove()
                           throws ConnectionException,
                                  AuthenticationException,
                                  org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                  IOException,
                                  TransferFailedException,
                                  ResourceDoesNotExistException,
                                  AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException

oneLevelTemporaryMove

public void oneLevelTemporaryMove()
                           throws ConnectionException,
                                  AuthenticationException,
                                  org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                  IOException,
                                  TransferFailedException,
                                  ResourceDoesNotExistException,
                                  AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException

sixLevelPermanentMove

public void sixLevelPermanentMove()
                           throws ConnectionException,
                                  AuthenticationException,
                                  org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                  IOException,
                                  TransferFailedException,
                                  ResourceDoesNotExistException,
                                  AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException

sixLevelTemporaryMove

public void sixLevelTemporaryMove()
                           throws ConnectionException,
                                  AuthenticationException,
                                  org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                  IOException,
                                  TransferFailedException,
                                  ResourceDoesNotExistException,
                                  AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException

infinitePermanentMove

public void infinitePermanentMove()
                           throws ConnectionException,
                                  AuthenticationException,
                                  org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                  IOException,
                                  TransferFailedException,
                                  ResourceDoesNotExistException,
                                  AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException

infiniteTemporaryMove

public void infiniteTemporaryMove()
                           throws ConnectionException,
                                  AuthenticationException,
                                  org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                  IOException,
                                  ResourceDoesNotExistException,
                                  AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
ResourceDoesNotExistException
AuthorizationException

permanentMove_TooManyRedirects_limit20

public void permanentMove_TooManyRedirects_limit20()
                                            throws ConnectionException,
                                                   AuthenticationException,
                                                   org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                                   IOException,
                                                   TransferFailedException,
                                                   ResourceDoesNotExistException,
                                                   AuthorizationException
NOTE: This test depends on a WagonTestCaseConfigurator configuration to limit redirects to 20. In the case of the Sun HTTP implementation, this is the default limit.

Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException

temporaryMove_TooManyRedirects_limit20

public void temporaryMove_TooManyRedirects_limit20()
                                            throws ConnectionException,
                                                   AuthenticationException,
                                                   org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                                   IOException,
                                                   ResourceDoesNotExistException,
                                                   AuthorizationException
NOTE: This test depends on a WagonTestCaseConfigurator configuration to limit redirects to 20. In the case of the Sun HTTP implementation, this is the default limit.

Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
ResourceDoesNotExistException
AuthorizationException

missing

public void missing()
             throws ConnectionException,
                    AuthenticationException,
                    org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                    IOException,
                    TransferFailedException,
                    AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
AuthorizationException

error

public void error()
           throws ConnectionException,
                  AuthenticationException,
                  org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                  IOException,
                  AuthorizationException,
                  ResourceDoesNotExistException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
AuthorizationException
ResourceDoesNotExistException

proxyTimeout

public void proxyTimeout()
                  throws ConnectionException,
                         AuthenticationException,
                         org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                         IOException,
                         AuthorizationException,
                         ResourceDoesNotExistException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
AuthorizationException
ResourceDoesNotExistException

forbidden

public void forbidden()
               throws ConnectionException,
                      org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                      IOException,
                      ResourceDoesNotExistException,
                      TransferFailedException
Throws:
ConnectionException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
ResourceDoesNotExistException
TransferFailedException

successfulAuthentication

public void successfulAuthentication()
                              throws ConnectionException,
                                     AuthenticationException,
                                     org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                     IOException,
                                     TransferFailedException,
                                     ResourceDoesNotExistException,
                                     AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException

unsuccessfulAuthentication

public void unsuccessfulAuthentication()
                                throws ConnectionException,
                                       org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                       IOException,
                                       TransferFailedException,
                                       ResourceDoesNotExistException
Throws:
ConnectionException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException

testAuthFailure

protected void testAuthFailure(String path,
                               AuthenticationInfo info)
                        throws ConnectionException,
                               org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                               IOException,
                               TransferFailedException,
                               ResourceDoesNotExistException
Throws:
ConnectionException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException

testSuccessfulGet

protected void testSuccessfulGet(String path)
                          throws ConnectionException,
                                 AuthenticationException,
                                 org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                 IOException,
                                 TransferFailedException,
                                 ResourceDoesNotExistException,
                                 AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException

testSuccessfulGet

protected void testSuccessfulGet(String path,
                                 String checkPath)
                          throws ConnectionException,
                                 AuthenticationException,
                                 org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                 IOException,
                                 TransferFailedException,
                                 ResourceDoesNotExistException,
                                 AuthorizationException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException

testErrorHandling

protected void testErrorHandling(int code)
                          throws ConnectionException,
                                 AuthenticationException,
                                 org.codehaus.plexus.component.configurator.ComponentConfigurationException,
                                 IOException,
                                 AuthorizationException,
                                 ResourceDoesNotExistException
Throws:
ConnectionException
AuthenticationException
org.codehaus.plexus.component.configurator.ComponentConfigurationException
IOException
AuthorizationException
ResourceDoesNotExistException


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.