private OneGoogleServerProto.OneGoogleService.Stub oneGoogleStub = null;
private Clock clock = null;
@Override
public void setUp() {
ApiProxyLocal proxy = LocalServiceTestHelper.getApiProxyLocal();
proxy.setProperty(LocalBasementService.LOG_TO_SAWMILL_ENABLE_PROPERTY,
Boolean.toString(logToSawmillEnable));
proxy.setProperty(LocalBasementService.LOG_TO_SAWMILL_IGNORE_PROPERTY,
Boolean.toString(logToSawmillIgnore));
proxy.setProperty(LocalBasementService.LOG_TO_SAWMILL_LOG_EVERY_CALL_PROPERTY,
Boolean.toString(logToSawmillLogEveryCall));
proxy.setProperty(LocalBasementService.LOG_TO_SAWMILL_WRITE_FINAL_PROTO_PROPERTY,
(logToSawmillFinalProtoStream != null ? Boolean.TRUE : Boolean.FALSE).toString());
if (gaiaMintEmail != null) {
proxy.setProperty(LocalBasementService.GAIA_MINT_EMAIL_PROPERTY, gaiaMintEmail);
}
if (gaiaMintUserId != null) {
proxy.setProperty(LocalBasementService.GAIA_MINT_USER_ID_PROPERTY, gaiaMintUserId);
}
if (gaiaMintAuthDomain != null) {
proxy.setProperty(LocalBasementService.GAIA_MINT_AUTH_DOMAIN_PROPERTY, gaiaMintAuthDomain);
}
if (gaiaMintIsAdmin != null) {
proxy.setProperty(
LocalBasementService.GAIA_MINT_IS_ADMIN_PROPERTY, gaiaMintIsAdmin.toString());
}
if (gaiaMintGaiaId != null) {
proxy.setProperty(LocalBasementService.GAIA_MINT_GAIA_ID_PROPERTY, gaiaMintGaiaId.toString());
}
if (!gaiaMintAllowedScopes.isEmpty()) {
proxy.setProperty(LocalBasementService.GAIA_MINT_ALLOWED_SCOPES_PROPERTY,
Joiner.on(',').join(gaiaMintAllowedScopes));
}
if (oneGoogleServerSpec != null) {
proxy.setProperty(LocalBasementService.ONE_GOOGLE_SERVER_SPEC, oneGoogleServerSpec);
}
LocalBasementService localBasementService = getLocalBasementService();
if (logToSawmillFinalProtoStream != null) {
localBasementService.injectLogToSawmillOutputStream(logToSawmillFinalProtoStream);