@Test public void rejectWithToTarget() { ImmutableBag<String> strings = this.newBag(); Assert.assertEquals(strings, strings.reject(Predicates.lessThan("0"))); Verify.assertEmpty( strings.rejectWith(Predicates2.<String>greaterThan(), "0", FastList.<String>newList())); }
@Test public void rejectWith() { ImmutableBag<String> strings = this.newBag(); Assert.assertEquals(strings, strings.rejectWith(Predicates2.<String>lessThan(), "0")); }