public interface ExceptionBehaviour
| Modifier and Type | Method and Description |
|---|---|
default <T extends Throwable> |
itThrows(Class<T> throwable,
String forCase,
Test testCase)
Statement that a unit should throw a specific exception for a particular case
|
default <T extends Throwable> SpecificationNode itThrows(Class<T> throwable, String forCase, Test testCase)
T - the expected exception typethrowable - the class of the expected exception typeforCase - a description of the case in which it should be throwntestCase - an implementation of the case in which is should be thrownCopyright © 2017. All rights reserved.