Class MockDatastoreFactory (2.24.1)

public class MockDatastoreFactory extends DatastoreFactory

Fake Datastore factory used for testing purposes when a true Datastore service is not needed.

Inheritance

java.lang.Object > DatastoreFactory > MockDatastoreFactory

Constructors

MockDatastoreFactory()

public MockDatastoreFactory()

Methods

getLastApiFormatHeaderValue()

public String getLastApiFormatHeaderValue()
Returns
Type Description
String

getLastBody()

public byte[] getLastBody()
Returns
Type Description
byte[]

getLastCookies()

public List<String> getLastCookies()
Returns
Type Description
List<String>

getLastMimeType()

public String getLastMimeType()
Returns
Type Description
String

getLastPath()

public String getLastPath()
Returns
Type Description
String

makeClient(DatastoreOptions options)

public HttpRequestFactory makeClient(DatastoreOptions options)

Constructs a Google APIs HTTP client with the associated credentials.

Parameter
Name Description
options DatastoreOptions
Returns
Type Description
com.google.api.client.http.HttpRequestFactory
Overrides

setNextError(int status, Code code, String message)

public void setNextError(int status, Code code, String message)
Parameters
Name Description
status int
code com.google.rpc.Code
message String

setNextException(IOException exception)

public void setNextException(IOException exception)
Parameter
Name Description
exception IOException

setNextResponse(Message response)

public void setNextResponse(Message response)
Parameter
Name Description
response Message