Class MockGoogleClient (1.34.1)

public class MockGoogleClient extends AbstractGoogleClient

Beta
Thread-safe mock Google client.

Inheritance

java.lang.Object > AbstractGoogleClient > MockGoogleClient

Constructors

MockGoogleClient(MockGoogleClient.Builder builder)

protected MockGoogleClient(MockGoogleClient.Builder builder)
Parameter
NameDescription
builderMockGoogleClient.Builder

builder

MockGoogleClient(HttpTransport transport, String rootUrl, String servicePath, ObjectParser objectParser, HttpRequestInitializer httpRequestInitializer)

public MockGoogleClient(HttpTransport transport, String rootUrl, String servicePath, ObjectParser objectParser, HttpRequestInitializer httpRequestInitializer)
Parameters
NameDescription
transportcom.google.api.client.http.HttpTransport

The transport to use for requests

rootUrlString

root URL of the service. Must end with a "/"

servicePathString

service path

objectParsercom.google.api.client.util.ObjectParser

object parser or null for none

httpRequestInitializercom.google.api.client.http.HttpRequestInitializer

HTTP request initializer or null for none