/**
* Constructs the {@link com.google.apphosting.api.ApiProxy.Environment} that
* will be installed. Subclass and override to provide your own implementation.
*/
protected ApiProxy.Environment newEnvironment() {
LocalEnvironment env = new LocalEnvironment(envAppId, envModuleId,
envVersionId, envInstance, TestLocalServerEnvironment.TEST_PORT, null) {
@Override
public String getEmail() {
return envEmail;
}
@Override
public boolean isLoggedIn() {
return envIsLoggedIn;
}
@Override
public boolean isAdmin() {
return envIsAdmin;
}
@Override
public String getAuthDomain() {
return envAuthDomain;
}
@Override
public long getRemainingMillis() {
return timer.getRemainingMillis();
}
};
env.getAttributes().putAll(envAttributes);
return env;
}