Skip to content

Static factories for creating Matchers using lambdas #440

Description

@rmcdouga

Having static factories that accept lambdas will reduce duplicated/boilerplate code when creating matchers. A flawed PR (#203) was created for this however it lacked unit tests and the implementation failed some standard tests when passed incompatible objects (TypeSafeDiagnosingMatcher is supposed to fail gracefully without an exception when passed an incompatible object but was throwing an exception instead).

I intend to create a new PR for this with unit tests and an implementation that conforms to the expected behaviour for TypeSafeDiagnosingMatcher.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions