Search code examples
javaunit-testingtestingautomated-testsassertj

analog of the method `isEqualToComparingFieldByFieldRecursively`


Can you please suggest an analog of the method isEqualToComparingFieldByFieldRecursively from the library AssertJ. Because this method is deprecated.


Solution

  • It is indeed deprecated, the javadoc indicates to use usingRecursiveComparison() instead which is documented here: https://assertj.github.io/doc/#assertj-core-recursive-comparison