App Engine SDK 1.8.4 release.
[gae.git] / java / src / main / com / google / appengine / tools / development / testing / LocalAppIdentityServiceTestConfig.java
blobaf5240a0517831838f6f9074b02d20a6d1960637
1 // Copyright 2011 Google Inc. All Rights Reserved.
2 package com.google.appengine.tools.development.testing;
4 import com.google.appengine.api.appidentity.dev.LocalAppIdentityService;
5 import com.google.appengine.tools.development.ApiProxyLocal;
7 /**
8 * Config for accessing the local app identity service in tests.
11 public class LocalAppIdentityServiceTestConfig implements LocalServiceTestConfig {
13 private String defaultGcsBucketName = null;
15 @Override
16 public void setUp() {
17 ApiProxyLocal proxy = LocalServiceTestHelper.getApiProxyLocal();
18 if (defaultGcsBucketName != null) {
19 proxy.setProperty("appengine.default.gcs.bucket.name", defaultGcsBucketName);
23 @Override
24 public void tearDown() {}
26 public static LocalAppIdentityService getLocalSecretsService() {
27 return (LocalAppIdentityService)
28 LocalServiceTestHelper.getLocalService(LocalAppIdentityService.PACKAGE);
31 public LocalAppIdentityServiceTestConfig setDefaultGcsBucketName(String defaultGcsBucketName) {
32 this.defaultGcsBucketName = defaultGcsBucketName;
33 return this;