@Test public void test_should_map_from_user_to_otp_validation_request() { final User user = User.builder() .tenantId("tenantId") .otpReference("otpReference") .mobileNumber("mobileNumber") .build(); final OtpValidationRequest otpValidationRequest = user.getOtpValidationRequest(); assertNotNull(otpValidationRequest); assertEquals("tenantId", otpValidationRequest.getTenantId()); assertEquals("mobileNumber", otpValidationRequest.getMobileNumber()); assertEquals("otpReference", otpValidationRequest.getOtpReference()); }
public OtpValidationRequest getOtpValidationRequest() { return OtpValidationRequest.builder() .mobileNumber(mobileNumber) .tenantId(tenantId) .otpReference(otpReference) .build(); }
User { public OtpValidationRequest getOtpValidationRequest() { return OtpValidationRequest.builder() .mobileNumber(mobileNumber) .tenantId(tenantId) .otpReference(otpReference) .build(); } }
User { public OtpValidationRequest getOtpValidationRequest() { return OtpValidationRequest.builder() .mobileNumber(mobileNumber) .tenantId(tenantId) .otpReference(otpReference) .build(); }  }
User { public OtpValidationRequest getOtpValidationRequest() { return OtpValidationRequest.builder() .mobileNumber(mobileNumber) .tenantId(tenantId) .otpReference(otpReference) .build(); }  User addAddressItem(Address addressItem); User addRolesItem(Role roleItem); void validateNewUser(); void validateUserModification(); boolean isCorrespondenceAddressInvalid(); boolean isPermanentAddressInvalid(); boolean isOtpReferenceAbsent(); boolean isTypeAbsent(); boolean isActiveIndicatorAbsent(); boolean isMobileNumberAbsent(); boolean isNameAbsent(); boolean isUsernameAbsent(); boolean isTenantIdAbsent(); boolean isPasswordAbsent(); boolean isRolesAbsent(); boolean isIdAbsent(); void nullifySensitiveFields(); boolean isLoggedInUserDifferentFromUpdatedUser(); void setRoleToCitizen(); void updatePassword(String newPassword); OtpValidationRequest getOtpValidationRequest(); List<Address> getPermanentAndCorrespondenceAddresses(); void setDefaultPasswordExpiry(int expiryInDays); void setActive(boolean isActive); }
User { public OtpValidationRequest getOtpValidationRequest() { return OtpValidationRequest.builder() .mobileNumber(mobileNumber) .tenantId(tenantId) .otpReference(otpReference) .build(); }  User addAddressItem(Address addressItem); User addRolesItem(Role roleItem); void validateNewUser(); void validateUserModification(); boolean isCorrespondenceAddressInvalid(); boolean isPermanentAddressInvalid(); boolean isOtpReferenceAbsent(); boolean isTypeAbsent(); boolean isActiveIndicatorAbsent(); boolean isMobileNumberAbsent(); boolean isNameAbsent(); boolean isUsernameAbsent(); boolean isTenantIdAbsent(); boolean isPasswordAbsent(); boolean isRolesAbsent(); boolean isIdAbsent(); void nullifySensitiveFields(); boolean isLoggedInUserDifferentFromUpdatedUser(); void setRoleToCitizen(); void updatePassword(String newPassword); OtpValidationRequest getOtpValidationRequest(); List<Address> getPermanentAndCorrespondenceAddresses(); void setDefaultPasswordExpiry(int expiryInDays); void setActive(boolean isActive);  }