@Test public void test_should_default_count_to_5_when_frequency_is_not_present() { final ServiceTypeSearchCriteria searchCriteria = ServiceTypeSearchCriteria.builder() .complaintTypeSearch("frequency") .count(null) .build(); assertEquals(5, searchCriteria.getCount()); }
public int getCount() { return count == null ? DEFAULT_FREQUENCY_COUNT : count; }
ServiceTypeSearchCriteria { public int getCount() { return count == null ? DEFAULT_FREQUENCY_COUNT : count; } }
ServiceTypeSearchCriteria { public int getCount() { return count == null ? DEFAULT_FREQUENCY_COUNT : count; }  }
ServiceTypeSearchCriteria { public int getCount() { return count == null ? DEFAULT_FREQUENCY_COUNT : count; }  ServiceRequestTypeSearch getComplaintTypeSearch(); int getCount(); void validate(); boolean isCategorySearch(); boolean isFrequencySearch(); boolean isReturnAll(); }
ServiceTypeSearchCriteria { public int getCount() { return count == null ? DEFAULT_FREQUENCY_COUNT : count; }  ServiceRequestTypeSearch getComplaintTypeSearch(); int getCount(); void validate(); boolean isCategorySearch(); boolean isFrequencySearch(); boolean isReturnAll();  }