-
-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
usingRecursiveComparison().ignoringFields("fieldName") is not working properly when maps sizes are different #2988
Labels
theme: recursive comparison
An issue related to the recursive comparison
Milestone
Comments
Thanks for reporting this @Anass-ELGHAOUI, could provide a test reproducing the issue to help us investigate? thanks! |
@joel-costigliola yes sure.
|
scordio
added
the
theme: recursive comparison
An issue related to the recursive comparison
label
Mar 17, 2023
OlivierCavadenti
added a commit
to OlivierCavadenti/assertj
that referenced
this issue
Mar 25, 2023
Fix ignoringFields behavior that doesn't work properly when using maps of different sizes with usingRecursiveComparison and isEqualTo for example. Fix assertj#2988
Hi I want to join your community so that I can also help you guys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
usingRecursiveComparison().ignoringFields("fieldName") is not working properly when comparing two maps with different sizes.
Example
using the following code the ingested node will be the same size as the expected one after ignoring "ingestionDate". So I suppose that start comparing the size of the maps makes the method more limited such as in this case for example.
The text was updated successfully, but these errors were encountered: