Skip to content

Feature Request: withProperty that takes a lambdaΒ #45

@Rhobal

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"))

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