Skip to content

Recursive comparison ignoringFields not working properly with maps #2988

@Anass-ELGHAOUI

Description

@Anass-ELGHAOUI

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.

assertThat(ingestedNode).usingRecursiveComparison().ignoringFields("ingestionDate").isEqualTo(expectedNode);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions