org.apache.maven.it
Class MavenITmng4428FollowHttpRedirectTest

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

public class MavenITmng4428FollowHttpRedirectTest
extends AbstractMavenIntegrationTestCase

This is a test set for MNG-4428.

Version:
$Id: MavenITmng4428FollowHttpRedirectTest.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
MavenITmng4428FollowHttpRedirectTest()
           
 
Method Summary
 void testitHttpsToHttp()
          Verify that redirects from HTTPS to HTTP are getting followed.
 void testitHttpsToHttps()
          Verify that redirects from HTTPS to HTTPS are getting followed.
 void testitHttpToHttp()
          Verify that redirects from HTTP to HTTP are getting followed.
 void testitHttpToHttps()
          Verify that redirects from HTTP to HTTPS are getting followed.
 void testitRelativeLocation()
          Verify that redirects using a relative location URL are getting followed.
 
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

MavenITmng4428FollowHttpRedirectTest

public MavenITmng4428FollowHttpRedirectTest()
Method Detail

testitHttpToHttp

public void testitHttpToHttp()
                      throws Exception
Verify that redirects from HTTP to HTTP are getting followed.

Throws:
Exception

testitHttpsToHttps

public void testitHttpsToHttps()
                        throws Exception
Verify that redirects from HTTPS to HTTPS are getting followed.

Throws:
Exception

testitHttpToHttps

public void testitHttpToHttps()
                       throws Exception
Verify that redirects from HTTP to HTTPS are getting followed.

Throws:
Exception

testitHttpsToHttp

public void testitHttpsToHttp()
                       throws Exception
Verify that redirects from HTTPS to HTTP are getting followed.

Throws:
Exception

testitRelativeLocation

public void testitRelativeLocation()
                            throws Exception
Verify that redirects using a relative location URL are getting followed. While a relative URL violates the HTTP spec, popular HTTP clients do support them so we better do, too.

Throws:
Exception


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