com.atlassian.sal.core.net
Class TestHttpClientRequest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.sal.core.net.TestHttpClientRequest
All Implemented Interfaces:
junit.framework.Test

public class TestHttpClientRequest
extends junit.framework.TestCase


Constructor Summary
TestHttpClientRequest()
           
 
Method Summary
 void tearDown()
           
 void testAddRequestParameters()
           
 void testAddRequestParametersFails()
           
 void testAuthentication()
           
 void testConnectTimeout()
           
 void testExecutePostMethodNoFollowRedirects()
           
 void testExecutePutMethodNoFollowRedirects()
           
 void testFollowRedirectForPostMethodsNotPossible()
           
 void testFollowRedirectForPutMethodsNotPossible()
           
 void testHttpException()
           
 void testMaxNumberOfRedirectionReached()
           
 void testNoFollowRedirect()
           
 void testOverriddenMaxNumberOfRedirectionReached()
           
 void testReadTimeout()
           
 void testSocketException()
           
 void testStatusException()
           
 void verifyThatRelativeUrlCannotBeUsed()
           
 void verifyThatTrustedAuthentcationUsesAbsoluteUrl()
           
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestHttpClientRequest

public TestHttpClientRequest()
Method Detail

tearDown

public void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

testAuthentication

public void testAuthentication()
                        throws IOException,
                               ResponseException
Throws:
IOException
ResponseException

verifyThatTrustedAuthentcationUsesAbsoluteUrl

public void verifyThatTrustedAuthentcationUsesAbsoluteUrl()
                                                   throws ResponseException
Throws:
ResponseException

verifyThatRelativeUrlCannotBeUsed

public void verifyThatRelativeUrlCannotBeUsed()
                                       throws ResponseException
Throws:
ResponseException

testConnectTimeout

public void testConnectTimeout()
                        throws IOException,
                               ResponseException
Throws:
IOException
ResponseException

testReadTimeout

public void testReadTimeout()
                     throws IOException,
                            ResponseException
Throws:
IOException
ResponseException

testHttpException

public void testHttpException()
                       throws IOException,
                              ResponseException
Throws:
IOException
ResponseException

testSocketException

public void testSocketException()
                         throws IOException,
                                ResponseException
Throws:
IOException
ResponseException

testStatusException

public void testStatusException()
                         throws IOException,
                                ResponseException
Throws:
IOException
ResponseException

testMaxNumberOfRedirectionReached

public void testMaxNumberOfRedirectionReached()
                                       throws IOException,
                                              ResponseException
Throws:
IOException
ResponseException

testOverriddenMaxNumberOfRedirectionReached

public void testOverriddenMaxNumberOfRedirectionReached()
                                                 throws IOException,
                                                        ResponseException
Throws:
IOException
ResponseException

testNoFollowRedirect

public void testNoFollowRedirect()
                          throws IOException
Throws:
IOException

testFollowRedirectForPostMethodsNotPossible

public void testFollowRedirectForPostMethodsNotPossible()
                                                 throws Exception
Throws:
Exception

testFollowRedirectForPutMethodsNotPossible

public void testFollowRedirectForPutMethodsNotPossible()
                                                throws Exception
Throws:
Exception

testExecutePostMethodNoFollowRedirects

public void testExecutePostMethodNoFollowRedirects()
                                            throws Exception
Throws:
Exception

testExecutePutMethodNoFollowRedirects

public void testExecutePutMethodNoFollowRedirects()
                                           throws Exception
Throws:
Exception

testAddRequestParametersFails

public void testAddRequestParametersFails()

testAddRequestParameters

public void testAddRequestParameters()
                              throws IOException,
                                     ResponseException
Throws:
IOException
ResponseException


Copyright © 2015 Atlassian. All rights reserved.