@Test public void usingNeverReturnsFalse() { final TriPredicate<O, O, O> never = new TernaryNever<O, O, O>(); final FirstMatchingTernaryPredicate<O, O, O> pred = new FirstMatchingTernaryPredicate<O, O, O>(Iterations.iterable(never)); Assert.assertFalse(pred.test(O.IGNORED, O.IGNORED, O.IGNORED)); }
@Test public void usingAlwaysReturnsTrue() { final TriPredicate<O, O, O> always = new TernaryAlways<O, O, O>(); final FirstMatchingTernaryPredicate<O, O, O> pred = new FirstMatchingTernaryPredicate<O, O, O>(Iterations.iterable(always)); Assert.assertTrue(pred.test(O.IGNORED, O.IGNORED, O.IGNORED)); }