com.atlassian.sal.core.rest
Class TestHttpClientRequest

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

public class TestHttpClientRequest
extends junit.framework.TestCase


Constructor Summary
TestHttpClientRequest()
           
 
Method Summary
 void testAddRequestParameters()
           
 void testAddRequestParametersFails()
           
 void testAuthentication()
           
 void testConnectTimeout()
           
 void testExecutePostMethodNoFollowRedirects()
           
 void testExecutePutMethodNoFollowRedirects()
           
 void testFollowRedirectForPostMethodsNotPossible()
           
 void testFollowRedirectForPutMethodsNotPossible()
           
 void testHttpException()
           
 void testMaxNumberOfRedirectionReached()
           
 void testNoFollowRedirect()
           
 void testReadTimeout()
           
 void testSocketException()
           
 void testStatusException()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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

TestHttpClientRequest

public TestHttpClientRequest()
Method Detail

testAuthentication

public void testAuthentication()
                        throws IOException,
                               com.atlassian.sal.api.net.ResponseException
Throws:
IOException
com.atlassian.sal.api.net.ResponseException

testConnectTimeout

public void testConnectTimeout()
                        throws IOException,
                               com.atlassian.sal.api.net.ResponseException
Throws:
IOException
com.atlassian.sal.api.net.ResponseException

testReadTimeout

public void testReadTimeout()
                     throws IOException,
                            com.atlassian.sal.api.net.ResponseException
Throws:
IOException
com.atlassian.sal.api.net.ResponseException

testHttpException

public void testHttpException()
                       throws IOException,
                              com.atlassian.sal.api.net.ResponseException
Throws:
IOException
com.atlassian.sal.api.net.ResponseException

testSocketException

public void testSocketException()
                         throws IOException,
                                com.atlassian.sal.api.net.ResponseException
Throws:
IOException
com.atlassian.sal.api.net.ResponseException

testStatusException

public void testStatusException()
                         throws IOException,
                                com.atlassian.sal.api.net.ResponseException
Throws:
IOException
com.atlassian.sal.api.net.ResponseException

testMaxNumberOfRedirectionReached

public void testMaxNumberOfRedirectionReached()
                                       throws IOException,
                                              com.atlassian.sal.api.net.ResponseException
Throws:
IOException
com.atlassian.sal.api.net.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,
                                     com.atlassian.sal.api.net.ResponseException
Throws:
IOException
com.atlassian.sal.api.net.ResponseException


Copyright © 2011 Atlassian. All Rights Reserved.