Skip to content

Allow not-quite-beans to be tested #6

@piefel

Description

@piefel

This library is great! Great for testing Lombok-generated equals-and-hashcode, for instance. However, in our context we do not care much about actual JavaBeans, for instance many classes do not have a default constructor, instead a constructor for all arguments. Some are even immutable.

Unfortunately, these classes cannot be tested with bean-matchers, even testing for a valid hashcode results in “Bean does not have no-args constructor”. It would be nice to lift that requirement – perhaps by registering default instances or by alternatively using the all-args-constructor for setting the values.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions