| Modifier and Type | Method and Description |
|---|---|
static <T extends Throwable> |
ThrowsException.throwsException(Class<T> expected) |
static <T extends Throwable> |
ThrowsException.throwsException(Class<T> expected,
org.hamcrest.Matcher<T> exceptionMatcher) |
| Modifier and Type | Method and Description |
|---|---|
static void |
LambdaAssert.assertRaises(Block block,
Class<? extends Throwable> expected)
Asserts that the evaluation of a block throws an exception.
|
static void |
LambdaAssert.assertRaises(String message,
Block block,
Class<? extends Throwable> expected)
Asserts that the evaluation of a block throws an exception.
|
protected boolean |
ThrowsException.matchesSafely(Block block) |
Copyright © 2013–2015. All rights reserved.