@Test public void test_should_return_false_when_page_number_is_not_present() { final ServiceRequestSearchCriteria searchCriteria = ServiceRequestSearchCriteria.builder() .pageSize(1) .fromIndex(null) .build(); assertFalse(searchCriteria.isPaginationCriteriaPresent()); }
public boolean isPaginationCriteriaPresent() { return fromIndex != null && pageSize != null; }
ServiceRequestSearchCriteria { public boolean isPaginationCriteriaPresent() { return fromIndex != null && pageSize != null; } }
ServiceRequestSearchCriteria { public boolean isPaginationCriteriaPresent() { return fromIndex != null && pageSize != null; }  }
ServiceRequestSearchCriteria { public boolean isPaginationCriteriaPresent() { return fromIndex != null && pageSize != null; }  DateTime getEndDate(); DateTime getLastModifiedDate(); boolean isPaginationCriteriaPresent(); }
ServiceRequestSearchCriteria { public boolean isPaginationCriteriaPresent() { return fromIndex != null && pageSize != null; }  DateTime getEndDate(); DateTime getLastModifiedDate(); boolean isPaginationCriteriaPresent();  }