Skip to content

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

Description

@peterdemaeyer

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions