@Test public void selectOver100() { ArrayList<Integer> list = new ArrayList<Integer>(Interval.oneTo(101)); ArrayList<Integer> results = ArrayListIterate.select(list, Predicates.instanceOf(Integer.class)); Verify.assertSize(101, results); }
@Test public void select() { ArrayList<Integer> list = this.getIntegerList(); ArrayList<Integer> results = ArrayListIterate.select(list, Predicates.instanceOf(Integer.class)); Verify.assertSize(5, results); }