Skip to content

[Bug] Ignored fields still are getting a dataset #1141

@henri-tremblay

Description

@henri-tremblay

Describe the bug

It is related to #1140. Use the same code but ignoring the values field.

        EqualsVerifier
                .forClass(Pojo.class)
                .withIgnoredFields("values")
                .verify();

It will still fail trying to create some values for the field.
According to me, we do not need to generate any dataset for ignored fields.
It would prevent the failure and bring some speed.

Steps to reproduce

No response

Error message and version number

java.lang.AssertionError: EqualsVerifier found a problem in class pro.tremblay.equalsverifiercheck.Pojo.
-> Collection is empty

Using 4.2.1

Code: EqualsVerifier invocation

No response

Code: class under test

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions