@Test public void test_should_not_throw_validation_exception_when_request_has_mandatory_parameters() { final ValidateRequest validateRequest = ValidateRequest.builder() .otp("otp") .tenantId("tenant") .identity("identity") .build(); validateRequest.validate(); }
public void validate() { if (isTenantIdAbsent() || isOtpAbsent() || isIdentityAbsent()) { throw new InvalidTokenValidateRequestException(this); } }
ValidateRequest { public void validate() { if (isTenantIdAbsent() || isOtpAbsent() || isIdentityAbsent()) { throw new InvalidTokenValidateRequestException(this); } } }
ValidateRequest { public void validate() { if (isTenantIdAbsent() || isOtpAbsent() || isIdentityAbsent()) { throw new InvalidTokenValidateRequestException(this); } }  }
ValidateRequest { public void validate() { if (isTenantIdAbsent() || isOtpAbsent() || isIdentityAbsent()) { throw new InvalidTokenValidateRequestException(this); } }  void validate(); boolean isIdentityAbsent(); boolean isOtpAbsent(); boolean isTenantIdAbsent(); }
ValidateRequest { public void validate() { if (isTenantIdAbsent() || isOtpAbsent() || isIdentityAbsent()) { throw new InvalidTokenValidateRequestException(this); } }  void validate(); boolean isIdentityAbsent(); boolean isOtpAbsent(); boolean isTenantIdAbsent();  }