@Override
 @Test
 public void anySatisfy() {
   ImmutableBag<String> strings = this.newBag();
   Assert.assertFalse(strings.anySatisfy(ERROR_THROWING_PREDICATE));
 }
Пример #2
0
 @Test
 public void anySatisfy() {
   ImmutableBag<String> strings = this.newBag();
   Assert.assertFalse(strings.anySatisfy(Integer.class::isInstance));
   Assert.assertTrue(strings.anySatisfy(String.class::isInstance));
 }