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
;
8 * Config for accessing the local app identity service in tests.
11 public class LocalAppIdentityServiceTestConfig
implements LocalServiceTestConfig
{
13 private String defaultGcsBucketName
= null;
17 ApiProxyLocal proxy
= LocalServiceTestHelper
.getApiProxyLocal();
18 if (defaultGcsBucketName
!= null) {
19 proxy
.setProperty("appengine.default.gcs.bucket.name", defaultGcsBucketName
);
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
;