public static String getLogoutURL(String returnURL) {
   UserService userService = UserServiceFactory.getUserService();
   String URL = userService.createLogoutURL(returnURL);
   if (AppEngineUtil.isDevelopment()) {
     URL = JEUtils.getRequestServer() + URL;
   }
   return URL;
 }
Beispiel #2
0
  /** setup with spedified user */
  @Override
  protected void before() throws Throwable {
    if (AppEngineUtil.isProduction()) {
      // not loaded TestEnvironment on production
      return;
    }

    TestEnvironment environment = (TestEnvironment) ApiProxy.getCurrentEnvironment();
    if (environment == null) {
      throw new NullPointerException("Not initialized TestEnvironment. please use RuleChain");
    }
    environment.setEmail(email);
    environment.setAdmin(admin);
    if (authDomain != null) {
      environment.setAuthDomain(authDomain);
    }
  }