@FunctionalInterface
public interface TestFunction
This is a functional interface whose functional method is apply()
.
Modifier and Type | Method and Description |
---|---|
void |
apply()
Defines the behaviour of the test.
|
static TestFunction |
identity()
Returns a function that does nothing.
|
void apply() throws java.lang.Exception
java.lang.Exception
- A test may throw any exception, which will result in a test error.static TestFunction identity()