Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have a default implementation for all Matcher methods besides matches(Object) #10

Open
peterdemaeyer opened this issue Oct 27, 2022 · 0 comments

Comments

@peterdemaeyer
Copy link
Owner

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.

@peterdemaeyer 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant