public final class LambdaAssert extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
assertRaises(Block block,
Class<? extends Throwable> expected)
Asserts that the evaluation of a block throws an exception.
|
static void |
assertRaises(String message,
Block block,
Class<? extends Throwable> expected)
Asserts that the evaluation of a block throws an exception.
|
public static void assertRaises(String message, Block block, Class<? extends Throwable> expected)
AssertionError is thrown with the given message.message - the identifying message for the AssertionError
(null okay)block - block of code to be executedexpected - expected exception typepublic static void assertRaises(Block block, Class<? extends Throwable> expected)
AssertionError is thrown.block - block of code to be executedexpected - expected exception typeCopyright © 2013–2015. All rights reserved.