Modifier and Type | Method and Description |
---|---|
static <T extends Throwable> |
ExceptionAssertExtensions.assertThrowsAndDoAssertsInCatch(Class<T> excType,
ExceptionAssertionsPerformer<T> excAssertsPerformer)
Checks if the given exception type is thrown and perform the given assertions in that exception object.
|
static <T extends Throwable> |
ExceptionAssertExtensions.assertThrowsAndDoAssertsInCatch(Class<T> excType,
ExceptionAssertionsPerformer<T> excAssertsPerformer,
String customFailMessage)
Similar to the method with the same name.
|
static <T extends Throwable> |
ExceptionAssertExtensions.assertThrowsSpecificException(String excMessage,
Class<T> excType,
ExceptionAssertionsPerformer<T> excAssertsPerformer,
String customFailMessage)
Assert that a method in a
Runnable closure should throw when tested with a specific message |
Copyright © 2014. All rights reserved.