@Test public void reject() { ArrayList<Integer> list = this.getIntegerList(); ArrayList<Integer> results = ArrayListIterate.reject(list, Predicates.instanceOf(Integer.class)); Verify.assertEmpty(results); }
@Test public void rejectOver100() { ArrayList<Integer> list = new ArrayList<Integer>(Interval.oneTo(101)); List<Integer> results = ArrayListIterate.reject(list, Predicates.instanceOf(Integer.class)); Verify.assertEmpty(results); }