Package io.inugami.api.functionnals
Interface FunctionMustThrow
-
public interface FunctionMustThrowCommonly used in unit test, the FunctionMustThrow interface design a function who will throw an exception. This approach is very helpful to verify error code returned.- Since:
- 20 déc. 2017
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidmustThrow(VoidFunctionWithException function)
-
-
-
Method Detail
-
mustThrow
default void mustThrow(VoidFunctionWithException function) throws TechnicalException
- Throws:
TechnicalException
-
-