@Test public void test_should_not_throw_exception_when_search_criteria_has_mandatory_fields() { final TokenSearchCriteria searchCriteria = new TokenSearchCriteria("uuid", "tenant"); searchCriteria.validate(); }
public void validate() { if(isIdAbsent() || isTenantIdAbsent()) { throw new InvalidTokenSearchCriteriaException(this); } }
TokenSearchCriteria { public void validate() { if(isIdAbsent() || isTenantIdAbsent()) { throw new InvalidTokenSearchCriteriaException(this); } } }
TokenSearchCriteria { public void validate() { if(isIdAbsent() || isTenantIdAbsent()) { throw new InvalidTokenSearchCriteriaException(this); } }  }
TokenSearchCriteria { public void validate() { if(isIdAbsent() || isTenantIdAbsent()) { throw new InvalidTokenSearchCriteriaException(this); } }  void validate(); boolean isIdAbsent(); boolean isTenantIdAbsent(); }
TokenSearchCriteria { public void validate() { if(isIdAbsent() || isTenantIdAbsent()) { throw new InvalidTokenSearchCriteriaException(this); } }  void validate(); boolean isIdAbsent(); boolean isTenantIdAbsent();  }