Class MockGoogleClient (2.6.0)

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
Name Description
builder MockGoogleClient.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
Name Description
transport com.google.api.client.http.HttpTransport

The transport to use for requests

rootUrl String

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

servicePath String

service path

objectParser com.google.api.client.util.ObjectParser

object parser or null for none

httpRequestInitializer com.google.api.client.http.HttpRequestInitializer

HTTP request initializer or null for none