Skip to content

Feature Request: withProperty that takes a lambda #45

Description

@Rhobal

If withProperty could take a lambda (Function<T, S>) to find the property, it would be type safe, have compile time checking and support code assist and refactoring, e.g.

pojo(Product.class).withProperty(Product::getId, is(1))
   .withProperty(Product::getName, is("name"))

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions