Package com.google.api.client.testing.http (1.42.3)

com.google.api.client.util.Beta
Testing utilities used for writing tests based on this library.

Classes

FixedClock

Beta
A thread-safe fixed time implementation of the Clock to be used for unit testing.

Explicitly allows you to set the time to any arbitrary value.

HttpTesting

Beta
Utilities and constants related to testing the HTTP library.

MockHttpContent

Beta
Mock for HttpContent.

Implementation is not thread-safe.

MockHttpTransport

Beta
Mock for HttpTransport.

Implementation is thread-safe. For maximum efficiency, applications should use a single globally-shared instance of the HTTP transport.

MockHttpTransport.Builder

Beta
Builder for MockHttpTransport.

Implementation is not thread-safe.

MockHttpUnsuccessfulResponseHandler

Beta
Mock for HttpUnsuccessfulResponseHandler.

Contains an #isCalled method that returns true if #handleResponse is called.

MockLowLevelHttpRequest

Beta
Mock for LowLevelHttpRequest.

Implementation is not thread-safe.

MockLowLevelHttpResponse

Beta
Mock for LowLevelHttpResponse.

Implementation is not thread-safe.