@Test public void throwing() { Verify.assertThrowsWithCause( RuntimeException.class, IOException.class, () -> Predicates.throwing( e -> { throw new IOException(); }) .accept(null)); }
@Test public void throwing() { Verify.assertThrowsWithCause( RuntimeException.class, IOException.class, () -> Functions2.throwing( (a, b) -> { throw new IOException(); }) .value(null, null)); }