it would be great to see integration with Java 8. This enables lazy evaluation, which would be helpful to assert that specific exceptions are thrown, e.g.
Assertions.assertThat(() -> {
throw new RuntimeException("Error");
}).isThrowing(RuntimeException.class, "Error");
For a working example implementation please take a look at this gist.
Hi,
it would be great to see integration with Java 8. This enables lazy evaluation, which would be helpful to assert that specific exceptions are thrown, e.g.
For a working example implementation please take a look at this gist.
Thanks,
Daniel