com.azure.core.test.http

Package containing classes to test HTTP communications in Azure client libraries.

Classes

AssertingClient

An HTTP Client that helps in providing assertions for invoking http client implementations.

AssertingHttpClientBuilder

HTTP client builder that helps in running sync and async assertion checks.

HttpClientTests

Generic test suite for HttpClient.

LocalTestServer

Local server that will reply to requests based on the configured HttpServlet.

MockHttpClient

This HttpClient attempts to mimic the behavior of http://httpbin.org without ever making a network call.

MockHttpResponse

An HTTP response that is created to simulate a HTTP request.

NoOpHttpClient

An HttpClient instance that does not do anything.

PlaybackClient

HTTP client that plays back NetworkCallRecord.

TestProxyPlaybackClient

A HttpClient that plays back test recordings from the external test proxy.

TestProxyTestServer

A simple HttpServer for unit testing the test proxy infrastructure.

Interfaces

HttpClientTests.BinaryDataTestConsumer

Interface defining a consumer that accepts a URL, BinaryData, HttpClient, and byte[] used to test sending BinaryData to an endpoint.

LocalTestServer.RequestHandler

Handler that will be used to process requests.