@TestWith({"100;200;201,100,200,5", "400;401;499,100,400,12"}) public void testFilter_boundsWithFilterCodes(String filterCodesParam, int lowerBound, int upperBound, int expectedSize) { tested = getTested(lowerBound, upperBound, prepareFilterCodes(filterCodesParam)); 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);  }