@TestWith({"100;200;201,18", "400;401;499,18", "404,18"}) public void testFilter_filterCodes(String filterCodesParam, int expectedSize) { tested = getTested(0, 600, 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);  }