Class MockDatastoreFactory (2.18.5)

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
TypeDescription
String

getLastBody()

public byte[] getLastBody()
Returns
TypeDescription
byte[]

getLastCookies()

public List<String> getLastCookies()
Returns
TypeDescription
List<String>

getLastMimeType()

public String getLastMimeType()
Returns
TypeDescription
String

getLastPath()

public String getLastPath()
Returns
TypeDescription
String

makeClient(DatastoreOptions options)

public HttpRequestFactory makeClient(DatastoreOptions options)

Constructs a Google APIs HTTP client with the associated credentials.

Parameter
NameDescription
optionsDatastoreOptions
Returns
TypeDescription
com.google.api.client.http.HttpRequestFactory
Overrides

setNextError(int status, Code code, String message)

public void setNextError(int status, Code code, String message)
Parameters
NameDescription
statusint
codecom.google.rpc.Code
messageString

setNextException(IOException exception)

public void setNextException(IOException exception)
Parameter
NameDescription
exceptionIOException

setNextResponse(Message response)

public void setNextResponse(Message response)
Parameter
NameDescription
responseMessage