You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever one implements Matcher, one has to implement at least two methods: matches(Object) and describeTo(Description description). It would be vastly more intuitive if there was a default implementation for the latter. Then one could implement a Matcher using a lambda. And usually, it's hard to come up with a good implementation of describeToanyway.
The text was updated successfully, but these errors were encountered:
peterdemaeyer
changed the title
Have a default implementation for all Matcher methods except matches(Object)
Have a default implementation for all Matcher methods besides matches(Object)
Oct 27, 2022
Whenever one implements
Matcher
, one has to implement at least two methods:matches(Object)
anddescribeTo(Description description)
. It would be vastly more intuitive if there was a default implementation for the latter. Then one could implement aMatcher
using a lambda. And usually, it's hard to come up with a good implementation ofdescribeTo
anyway.The text was updated successfully, but these errors were encountered: