Class MockDatastoreFactory
java.lang.Object
com.google.datastore.v1.client.DatastoreFactory
com.google.datastore.v1.client.testing.MockDatastoreFactory
Fake Datastore factory used for testing purposes when a true Datastore service is not needed.
-
Field Summary
Fields inherited from class com.google.datastore.v1.client.DatastoreFactory
DEFAULT_HOST, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]com.google.api.client.http.HttpRequestFactorymakeClient(DatastoreOptions options) Constructs a Google APIs HTTP client with the associated credentials.voidsetNextError(int status, com.google.rpc.Code code, String message) voidsetNextException(IOException exception) voidsetNextResponse(com.google.protobuf.Message response) Methods inherited from class com.google.datastore.v1.client.DatastoreFactory
create, get, logMethodCalls, newRemoteRpc
-
Constructor Details
-
MockDatastoreFactory
public MockDatastoreFactory()
-
-
Method Details
-
setNextResponse
public void setNextResponse(com.google.protobuf.Message response) -
setNextError
-
setNextException
-
makeClient
Description copied from class:DatastoreFactoryConstructs a Google APIs HTTP client with the associated credentials.- Overrides:
makeClientin classDatastoreFactory
-
getLastPath
-
getLastMimeType
-
getLastApiFormatHeaderValue
-
getLastBody
public byte[] getLastBody() -
getLastCookies
-