@Test(expected = InvalidComplaintStatusSearchException.class) public void test_should_fail_validation_when_roles_is_empty() { ComplaintStatusSearchCriteria complaintStatusSearchCriteria = new ComplaintStatusSearchCriteria("NAME", Collections.emptyList(), "default"); complaintStatusSearchCriteria.validate(); }
public void validate() { if (isCodeAbsent() || isRolesAbsent()) { throw new InvalidComplaintStatusSearchException(this); } }
ComplaintStatusSearchCriteria { public void validate() { if (isCodeAbsent() || isRolesAbsent()) { throw new InvalidComplaintStatusSearchException(this); } } }
ComplaintStatusSearchCriteria { public void validate() { if (isCodeAbsent() || isRolesAbsent()) { throw new InvalidComplaintStatusSearchException(this); } }  }
ComplaintStatusSearchCriteria { public void validate() { if (isCodeAbsent() || isRolesAbsent()) { throw new InvalidComplaintStatusSearchException(this); } }  void validate(); boolean isCodeAbsent(); boolean isRolesAbsent(); }
ComplaintStatusSearchCriteria { public void validate() { if (isCodeAbsent() || isRolesAbsent()) { throw new InvalidComplaintStatusSearchException(this); } }  void validate(); boolean isCodeAbsent(); boolean isRolesAbsent();  }