TestEnvironment.java :  » App » mobile-life » org » beyond » test » Android Open Source

Android Open Source » App » mobile life 
mobile life » org » beyond » test » TestEnvironment.java
package org.beyond.test;

import java.util.HashMap;
import java.util.Map;

import com.google.apphosting.api.ApiProxy;

public class TestEnvironment implements ApiProxy.Environment {

  public String getAppId() {
    return "Unit Tests";
  }

  public String getVersionId() {
    return "1.0";
  }

  public void setDefaultNamespace(String s) {
  }

  public String getRequestNamespace() {
    return null;
  }

  public String getDefaultNamespace() {
    return null;
  }

  public String getAuthDomain() {
    return null;
  }

  public boolean isLoggedIn() {
    return false;
  }

  public String getEmail() {
    return null;
  }

  public boolean isAdmin() {
    return false;
  }

  @Override
  public Map<String, Object> getAttributes() {
    return new HashMap<String, Object>();
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.