@TestWith({"0,0", "100,1", "101,2", "199,3", "200,4", "300,7", "400,10", "500,16",}) public void testFilter_upperBound(int upperBound, int expectedSize) { tested = getTested(0, upperBound, new ArrayList<Integer>()); List<StatusCode> result = tested.filter(statusCodes); assertThat(result.size(), is(expectedSize)); }
public List<StatusCode> filter(List<StatusCode> codes) { return FluentIterable.from(codes).filter(new StatusCodeFilterPredicate()).toList(); }
StatusCodesFilter { public List<StatusCode> filter(List<StatusCode> codes) { return FluentIterable.from(codes).filter(new StatusCodeFilterPredicate()).toList(); } }
StatusCodesFilter { public List<StatusCode> filter(List<StatusCode> codes) { return FluentIterable.from(codes).filter(new StatusCodeFilterPredicate()).toList(); } StatusCodesFilter(int lowerBound, int upperBound, List<Integer> filterCodes); }
StatusCodesFilter { public List<StatusCode> filter(List<StatusCode> codes) { return FluentIterable.from(codes).filter(new StatusCodeFilterPredicate()).toList(); } StatusCodesFilter(int lowerBound, int upperBound, List<Integer> filterCodes); List<StatusCode> filter(List<StatusCode> codes); }
StatusCodesFilter { public List<StatusCode> filter(List<StatusCode> codes) { return FluentIterable.from(codes).filter(new StatusCodeFilterPredicate()).toList(); } StatusCodesFilter(int lowerBound, int upperBound, List<Integer> filterCodes); List<StatusCode> filter(List<StatusCode> codes);  }