Esempio n. 1
0
  private static User userWithName(String name) {
    User user = new User();

    user.setName(name);
    user.setEmail("");
    user.setImageUrl(
        "https://cloud.githubusercontent.com/assets/1068249/10568603/4ddda6ac-75cf-11e5-8016-8d0c504c0051.png");
    user.setFacebookId(randomId());
    if (name.equals("Hasham Ali")) {
      String s = "Oo7iDf8gIH";
      user.setObjectId(s);
    }
    return user;
  }