@FunctionalInterface
public interface HookFunction
This is a functional interface whose functional method is apply()
.
Modifier and Type | Method and Description |
---|---|
void |
apply()
Defines the behaviour of a test hook.
|
static HookFunction |
identity()
Returns a function that does nothing.
|
void apply() throws java.lang.Exception
java.lang.Exception
- To allow tests and hooks to throw checked exceptions.static HookFunction identity()