Exemplo n.º 1
0
  @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()));
  }
Exemplo n.º 2
0
  @Test
  public void rejectWith() {
    ImmutableBag<String> strings = this.newBag();

    Assert.assertEquals(strings, strings.rejectWith(Predicates2.<String>lessThan(), "0"));
  }