@Test public void success() { model.response = LoginResponseModel.RESPONSE_OK; model.userId = "id"; assertThat(model.isSuccess(), is(true)); }
public boolean isSuccess() { return RESPONSE_OK.equals(response) && TextUtils.hasText(userId) && TextUtils.isEmpty(failureReason); }
LoginResponseModel { public boolean isSuccess() { return RESPONSE_OK.equals(response) && TextUtils.hasText(userId) && TextUtils.isEmpty(failureReason); } }
LoginResponseModel { public boolean isSuccess() { return RESPONSE_OK.equals(response) && TextUtils.hasText(userId) && TextUtils.isEmpty(failureReason); }  }
LoginResponseModel { public boolean isSuccess() { return RESPONSE_OK.equals(response) && TextUtils.hasText(userId) && TextUtils.isEmpty(failureReason); }  boolean isSuccess(); String getUserId(); Exception getError(); }
LoginResponseModel { public boolean isSuccess() { return RESPONSE_OK.equals(response) && TextUtils.hasText(userId) && TextUtils.isEmpty(failureReason); }  boolean isSuccess(); String getUserId(); Exception getError();  }