@Test(expected = InvalidNonLoggedInUserUpdatePasswordRequestException.class) public void test_should_throw_exception_when_mobile_number_is_not_present() { final NonLoggedInUserUpdatePasswordRequest request = NonLoggedInUserUpdatePasswordRequest.builder() .tenantId("tenantId") .newPassword("newPassword") .userName(null) .otpReference("otpReference") .build(); request.validate(); }
public void validate() { if (isModelInvalid()) { throw new InvalidNonLoggedInUserUpdatePasswordRequestException(this); } }
NonLoggedInUserUpdatePasswordRequest { public void validate() { if (isModelInvalid()) { throw new InvalidNonLoggedInUserUpdatePasswordRequestException(this); } } }
NonLoggedInUserUpdatePasswordRequest { public void validate() { if (isModelInvalid()) { throw new InvalidNonLoggedInUserUpdatePasswordRequestException(this); } }  }
NonLoggedInUserUpdatePasswordRequest { public void validate() { if (isModelInvalid()) { throw new InvalidNonLoggedInUserUpdatePasswordRequestException(this); } }  void validate(); OtpValidationRequest getOtpValidationRequest(); boolean isOtpReferenceAbsent(); boolean isUsernameAbsent(); boolean isNewPasswordAbsent(); boolean isTenantIdAbsent(); }
NonLoggedInUserUpdatePasswordRequest { public void validate() { if (isModelInvalid()) { throw new InvalidNonLoggedInUserUpdatePasswordRequestException(this); } }  void validate(); OtpValidationRequest getOtpValidationRequest(); boolean isOtpReferenceAbsent(); boolean isUsernameAbsent(); boolean isNewPasswordAbsent(); boolean isTenantIdAbsent();  }