Closed dmfs closed 4 years ago
At present we can match functional interfaces only by using the having matcher. A dedicated FunctionMatcher could simplify these cases:
having
assertThat(squareFunction, having(f->f.value(10), equalTo(100))); // vs. assertThat(squareFunction, evaluates(10, equalTo(100)));
done
A Matcher for functional interfaces.
At present we can match functional interfaces only by using the
having
matcher. A dedicated FunctionMatcher could simplify these cases: