Package com.google.appengine.api.testing
Class MockEnvironment
java.lang.Object
com.google.appengine.api.testing.MockEnvironment
- All Implemented Interfaces:
com.google.apphosting.api.ApiProxy.Environment
public class MockEnvironment
extends Object
implements com.google.apphosting.api.ApiProxy.Environment
A Mock
Environment for testing.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMockEnvironment(String appId, String versionId) MockEnvironment(String appId, String moduleId, String versionId) -
Method Summary
Modifier and TypeMethodDescriptionstatic MockEnvironmentfromTestClass(Class<?> testClass) getAppId()getEmail()longDeprecated.booleanisAdmin()boolean
-
Field Details
-
APPS_NAMESPACE_KEY
-
-
Constructor Details
-
MockEnvironment
-
MockEnvironment
-
-
Method Details
-
fromTestClass
-
getAppId
- Specified by:
getAppIdin interfacecom.google.apphosting.api.ApiProxy.Environment
-
getModuleId
- Specified by:
getModuleIdin interfacecom.google.apphosting.api.ApiProxy.Environment
-
getVersionId
- Specified by:
getVersionIdin interfacecom.google.apphosting.api.ApiProxy.Environment
-
getEmail
- Specified by:
getEmailin interfacecom.google.apphosting.api.ApiProxy.Environment
-
isLoggedIn
public boolean isLoggedIn()- Specified by:
isLoggedInin interfacecom.google.apphosting.api.ApiProxy.Environment
-
isAdmin
public boolean isAdmin()- Specified by:
isAdminin interfacecom.google.apphosting.api.ApiProxy.Environment
-
getAuthDomain
- Specified by:
getAuthDomainin interfacecom.google.apphosting.api.ApiProxy.Environment
-
getRequestNamespace
Deprecated.- Specified by:
getRequestNamespacein interfacecom.google.apphosting.api.ApiProxy.Environment
-
getAttributes
- Specified by:
getAttributesin interfacecom.google.apphosting.api.ApiProxy.Environment
-
getRemainingMillis
public long getRemainingMillis()- Specified by:
getRemainingMillisin interfacecom.google.apphosting.api.ApiProxy.Environment
-