@Override @Test public void anySatisfy() { ImmutableBag<String> strings = this.newBag(); Assert.assertFalse(strings.anySatisfy(ERROR_THROWING_PREDICATE)); }
@Test public void anySatisfy() { ImmutableBag<String> strings = this.newBag(); Assert.assertFalse(strings.anySatisfy(Integer.class::isInstance)); Assert.assertTrue(strings.anySatisfy(String.class::isInstance)); }