public class MockDatastoreFactory extends DatastoreFactory
DEFAULT_HOST, VERSION| Constructor and Description |
|---|
MockDatastoreFactory() |
| Modifier and Type | Method and Description |
|---|---|
String |
getLastApiFormatHeaderValue() |
byte[] |
getLastBody() |
List<String> |
getLastCookies() |
String |
getLastMimeType() |
String |
getLastPath() |
com.google.api.client.http.HttpRequestFactory |
makeClient(DatastoreOptions options)
Constructs a Google APIs HTTP client with the associated credentials.
|
void |
setNextError(int status,
com.google.rpc.Code code,
String message) |
void |
setNextException(IOException exception) |
void |
setNextResponse(com.google.protobuf.Message response) |
create, get, logMethodCalls, newRemoteRpcpublic void setNextResponse(com.google.protobuf.Message response)
public void setNextError(int status,
com.google.rpc.Code code,
String message)
public void setNextException(IOException exception)
public com.google.api.client.http.HttpRequestFactory makeClient(DatastoreOptions options)
DatastoreFactorymakeClient in class DatastoreFactorypublic String getLastPath()
public String getLastMimeType()
public String getLastApiFormatHeaderValue()
public byte[] getLastBody()
Copyright © 2026 Google LLC. All rights reserved.