Class RestProxyTests


  • public abstract class RestProxyTests
    extends java.lang.Object
    • Constructor Detail

      • RestProxyTests

        public RestProxyTests()
    • Method Detail

      • createHttpClient

        protected abstract com.azure.android.core.http.HttpClient createHttpClient()
        Get the HTTP client that will be used for each test. This will be called once per test.
        Returns:
        The HTTP client to use for each test.
      • getWireMockPort

        protected abstract int getWireMockPort()
        Get the dynamic port the WireMock server is using to properly route the request.
        Returns:
        The HTTP port WireMock is using.
      • requestWithByteArrayReturnType

        @Test
        public void requestWithByteArrayReturnType()
      • requestWithByteArrayReturnTypeAndParameterizedHostAndPath

        @Test
        public void requestWithByteArrayReturnTypeAndParameterizedHostAndPath()
      • getRequestWithNoReturn

        @Test
        public void getRequestWithNoReturn()
      • getRequestWithAnything

        @Test
        public void getRequestWithAnything()
      • getRequestWithAnythingWithPlus

        @Test
        public void getRequestWithAnythingWithPlus()
      • getRequestWithAnythingWithPathParam

        @Test
        public void getRequestWithAnythingWithPathParam()
      • getRequestWithAnythingWithPathParamWithSpace

        @Test
        public void getRequestWithAnythingWithPathParamWithSpace()
      • getRequestWithAnythingWithPathParamWithPlus

        @Test
        public void getRequestWithAnythingWithPathParamWithPlus()
      • getRequestWithAnythingWithEncodedPathParam

        @Test
        public void getRequestWithAnythingWithEncodedPathParam()
      • getRequestWithAnythingWithEncodedPathParamWithPercent20

        @Test
        public void getRequestWithAnythingWithEncodedPathParamWithPercent20()
      • getRequestWithAnythingWithEncodedPathParamWithPlus

        @Test
        public void getRequestWithAnythingWithEncodedPathParamWithPlus()
      • getRequestWithQueryParametersAndAnything

        @Test
        public void getRequestWithQueryParametersAndAnything()
      • getRequestWithQueryParametersAndAnythingWithPercent20

        @Test
        public void getRequestWithQueryParametersAndAnythingWithPercent20()
      • getRequestWithQueryParametersAndAnythingWithEncodedWithPercent20

        @Test
        public void getRequestWithQueryParametersAndAnythingWithEncodedWithPercent20()
      • getRequestWithNullQueryParameter

        @Test
        public void getRequestWithNullQueryParameter()
      • getRequestWithHeaderParametersAndAnythingReturn

        @Test
        public void getRequestWithHeaderParametersAndAnythingReturn()
      • getRequestWithNullHeader

        @Test
        public void getRequestWithNullHeader()
      • postRequestWithStringBody

        @Test
        public void postRequestWithStringBody()
      • postRequestWithNullBody

        @Test
        public void postRequestWithNullBody()
      • putRequestWithIntBody

        @Test
        public void putRequestWithIntBody()
      • putRequestWithBodyAndEqualContentLength

        @Test
        public void putRequestWithBodyAndEqualContentLength()
      • putRequestWithUnexpectedResponse

        @Test
        public void putRequestWithUnexpectedResponse()
      • putRequestWithUnexpectedResponseAndExceptionType

        @Test
        public void putRequestWithUnexpectedResponseAndExceptionType()
      • putRequestWithUnexpectedResponseAndDeterminedExceptionType

        @Test
        public void putRequestWithUnexpectedResponseAndDeterminedExceptionType()
      • putRequestWithUnexpectedResponseAndFallthroughExceptionType

        @Test
        public void putRequestWithUnexpectedResponseAndFallthroughExceptionType()
      • putRequestWithUnexpectedResponseAndNoFallthroughExceptionType

        @Test
        public void putRequestWithUnexpectedResponseAndNoFallthroughExceptionType()
      • headRequest

        @Test
        public void headRequest()
      • headBooleanRequest

        @Test
        public void headBooleanRequest()
      • syncVoidHeadRequest

        @Test
        public void syncVoidHeadRequest()
      • deleteRequest

        @Test
        public void deleteRequest()
      • patchRequest

        @Test
        public void patchRequest()
      • headersRequest

        @Test
        public void headersRequest()
      • service16Put

        @Test
        public void service16Put()
      • requestWithMultipleHostParams

        @Test
        public void requestWithMultipleHostParams()
      • service18GetStatus200

        @Test
        public void service18GetStatus200()
      • service18GetStatus200WithExpectedResponse200

        @Test
        public void service18GetStatus200WithExpectedResponse200()
      • service18GetStatus300

        @Test
        public void service18GetStatus300()
      • service18GetStatus300WithExpectedResponse300

        @Test
        public void service18GetStatus300WithExpectedResponse300()
      • service18GetStatus400

        @Test
        public void service18GetStatus400()
      • service18GetStatus400WithExpectedResponse400

        @Test
        public void service18GetStatus400WithExpectedResponse400()
      • service18GetStatus500

        @Test
        public void service18GetStatus500()
      • service18GetStatus500WithExpectedResponse500

        @Test
        public void service18GetStatus500WithExpectedResponse500()
      • service19PutWithNoContentTypeAndStringBodyWithNullBody

        @Test
        public void service19PutWithNoContentTypeAndStringBodyWithNullBody()
      • service19PutWithNoContentTypeAndStringBodyWithEmptyBody

        @Test
        public void service19PutWithNoContentTypeAndStringBodyWithEmptyBody()
      • service19PutWithNoContentTypeAndStringBodyWithNonEmptyBody

        @Test
        public void service19PutWithNoContentTypeAndStringBodyWithNonEmptyBody()
      • service19PutWithNoContentTypeAndByteArrayBodyWithNullBody

        @Test
        public void service19PutWithNoContentTypeAndByteArrayBodyWithNullBody()
      • service19PutWithNoContentTypeAndByteArrayBodyWithEmptyBody

        @Test
        public void service19PutWithNoContentTypeAndByteArrayBodyWithEmptyBody()
      • service19PutWithNoContentTypeAndByteArrayBodyWithNonEmptyBody

        @Test
        public void service19PutWithNoContentTypeAndByteArrayBodyWithNonEmptyBody()
      • service19PutWithHeaderApplicationJsonContentTypeAndStringBodyWithNullBody

        @Test
        public void service19PutWithHeaderApplicationJsonContentTypeAndStringBodyWithNullBody()
      • service19PutWithHeaderApplicationJsonContentTypeAndStringBodyWithEmptyBody

        @Test
        public void service19PutWithHeaderApplicationJsonContentTypeAndStringBodyWithEmptyBody()
      • service19PutWithHeaderApplicationJsonContentTypeAndStringBodyWithNonEmptyBody

        @Test
        public void service19PutWithHeaderApplicationJsonContentTypeAndStringBodyWithNonEmptyBody()
      • service19PutWithHeaderApplicationJsonContentTypeAndByteArrayBodyWithNullBody

        @Test
        public void service19PutWithHeaderApplicationJsonContentTypeAndByteArrayBodyWithNullBody()
      • service19PutWithHeaderApplicationJsonContentTypeAndByteArrayBodyWithEmptyBody

        @Test
        public void service19PutWithHeaderApplicationJsonContentTypeAndByteArrayBodyWithEmptyBody()
      • service19PutWithHeaderApplicationJsonContentTypeAndByteArrayBodyWithNonEmptyBody

        @Test
        public void service19PutWithHeaderApplicationJsonContentTypeAndByteArrayBodyWithNonEmptyBody()
      • service19PutWithHeaderApplicationJsonContentTypeAndCharsetAndStringBodyWithNullBody

        @Test
        public void service19PutWithHeaderApplicationJsonContentTypeAndCharsetAndStringBodyWithNullBody()
      • service19PutWithHeaderApplicationJsonContentTypeAndCharsetAndStringBodyWithEmptyBody

        @Test
        public void service19PutWithHeaderApplicationJsonContentTypeAndCharsetAndStringBodyWithEmptyBody()
      • service19PutWithHeaderApplicationJsonContentTypeAndCharsetAndStringBodyWithNonEmptyBody

        @Test
        public void service19PutWithHeaderApplicationJsonContentTypeAndCharsetAndStringBodyWithNonEmptyBody()
      • service19PutWithHeaderApplicationOctetStreamContentTypeAndStringBodyWithNullBody

        @Test
        public void service19PutWithHeaderApplicationOctetStreamContentTypeAndStringBodyWithNullBody()
      • service19PutWithHeaderApplicationOctetStreamContentTypeAndStringBodyWithEmptyBody

        @Test
        public void service19PutWithHeaderApplicationOctetStreamContentTypeAndStringBodyWithEmptyBody()
      • service19PutWithHeaderApplicationOctetStreamContentTypeAndStringBodyWithNonEmptyBody

        @Test
        public void service19PutWithHeaderApplicationOctetStreamContentTypeAndStringBodyWithNonEmptyBody()
      • service19PutWithHeaderApplicationOctetStreamContentTypeAndByteArrayBodyWithNullBody

        @Test
        public void service19PutWithHeaderApplicationOctetStreamContentTypeAndByteArrayBodyWithNullBody()
      • service19PutWithHeaderApplicationOctetStreamContentTypeAndByteArrayBodyWithEmptyBody

        @Test
        public void service19PutWithHeaderApplicationOctetStreamContentTypeAndByteArrayBodyWithEmptyBody()
      • service19PutWithHeaderApplicationOctetStreamContentTypeAndByteArrayBodyWithNonEmptyBody

        @Test
        public void service19PutWithHeaderApplicationOctetStreamContentTypeAndByteArrayBodyWithNonEmptyBody()
      • service19PutWithBodyParamApplicationJsonContentTypeAndStringBodyWithNullBody

        @Test
        public void service19PutWithBodyParamApplicationJsonContentTypeAndStringBodyWithNullBody()
      • service19PutWithBodyParamApplicationJsonContentTypeAndStringBodyWithEmptyBody

        @Test
        public void service19PutWithBodyParamApplicationJsonContentTypeAndStringBodyWithEmptyBody()
      • service19PutWithBodyParamApplicationJsonContentTypeAndStringBodyWithNonEmptyBody

        @Test
        public void service19PutWithBodyParamApplicationJsonContentTypeAndStringBodyWithNonEmptyBody()
      • service19PutWithBodyParamApplicationJsonContentTypeAndCharsetAndStringBodyWithNullBody

        @Test
        public void service19PutWithBodyParamApplicationJsonContentTypeAndCharsetAndStringBodyWithNullBody()
      • service19PutWithBodyParamApplicationJsonContentTypeAndCharsetAndStringBodyWithEmptyBody

        @Test
        public void service19PutWithBodyParamApplicationJsonContentTypeAndCharsetAndStringBodyWithEmptyBody()
      • service19PutWithBodyParamApplicationJsonContentTypeAndCharsetAndStringBodyWithNonEmptyBody

        @Test
        public void service19PutWithBodyParamApplicationJsonContentTypeAndCharsetAndStringBodyWithNonEmptyBody()
      • service19PutWithBodyParamApplicationJsonContentTypeAndByteArrayBodyWithNullBody

        @Test
        public void service19PutWithBodyParamApplicationJsonContentTypeAndByteArrayBodyWithNullBody()
      • service19PutWithBodyParamApplicationJsonContentTypeAndByteArrayBodyWithEmptyBody

        @Test
        public void service19PutWithBodyParamApplicationJsonContentTypeAndByteArrayBodyWithEmptyBody()
      • service19PutWithBodyParamApplicationJsonContentTypeAndByteArrayBodyWithNonEmptyBody

        @Test
        public void service19PutWithBodyParamApplicationJsonContentTypeAndByteArrayBodyWithNonEmptyBody()
      • service19PutWithBodyParamApplicationOctetStreamContentTypeAndStringBodyWithNullBody

        @Test
        public void service19PutWithBodyParamApplicationOctetStreamContentTypeAndStringBodyWithNullBody()
      • service19PutWithBodyParamApplicationOctetStreamContentTypeAndStringBodyWithEmptyBody

        @Test
        public void service19PutWithBodyParamApplicationOctetStreamContentTypeAndStringBodyWithEmptyBody()
      • service19PutWithBodyParamApplicationOctetStreamContentTypeAndStringBodyWithNonEmptyBody

        @Test
        public void service19PutWithBodyParamApplicationOctetStreamContentTypeAndStringBodyWithNonEmptyBody()
      • service19PutWithBodyParamApplicationOctetStreamContentTypeAndByteArrayBodyWithNullBody

        @Test
        public void service19PutWithBodyParamApplicationOctetStreamContentTypeAndByteArrayBodyWithNullBody()
      • service19PutWithBodyParamApplicationOctetStreamContentTypeAndByteArrayBodyWithEmptyBody

        @Test
        public void service19PutWithBodyParamApplicationOctetStreamContentTypeAndByteArrayBodyWithEmptyBody()
      • service19PutWithBodyParamApplicationOctetStreamContentTypeAndByteArrayBodyWithNonEmptyBody

        @Test
        public void service19PutWithBodyParamApplicationOctetStreamContentTypeAndByteArrayBodyWithNonEmptyBody()
      • service20GetBytes100OnlyHeaders

        @Test
        public void service20GetBytes100OnlyHeaders()
      • service20GetBytes100BodyAndHeaders

        @Test
        public void service20GetBytes100BodyAndHeaders()
      • service20GetBytesOnlyStatus

        @Test
        public void service20GetBytesOnlyStatus()
      • service20GetBytesOnlyHeaders

        @Test
        public void service20GetBytesOnlyHeaders()
      • service20PutOnlyHeaders

        @Test
        public void service20PutOnlyHeaders()
      • service20PutBodyAndHeaders

        @Test
        public void service20PutBodyAndHeaders()
      • service20GetVoidResponse

        @Test
        public void service20GetVoidResponse()
      • service20GetResponseBody

        @Test
        public void service20GetResponseBody()
      • unexpectedHTTPOK

        @Test
        public void unexpectedHTTPOK()
      • service21GetBytes100

        @Test
        public void service21GetBytes100()
      • simpleDownloadStreamResponseTest

        @Test
        public void simpleDownloadStreamResponseTest()
      • simpleDownloadResponseTest

        @Test
        public void simpleDownloadResponseTest()
      • bytesUploadTest

        @Test
        public void bytesUploadTest()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • service22GetBytes

        @Test
        public void service22GetBytes()
      • service23GetBytes

        @Test
        public void service23GetBytes()
      • service24Put

        @Test
        public void service24Put()
      • postUrlForm

        @Test
        public void postUrlForm()
      • postUrlFormEncoded

        @Test
        public void postUrlFormEncoded()
      • createService

        protected <T> T createService​(java.lang.Class<T> serviceClass)
      • createService

        protected <T> T createService​(java.lang.Class<T> serviceClass,
                                      com.azure.android.core.http.HttpClient httpClient)