determineDifferences method of RecursiveComparisonDifferenceCalculator not able to compare the list of 100 objects #2979
Labels
theme: recursive comparison
An issue related to the recursive comparison
Milestone
Trying to work with assertj-core recursive comparison APIs for deep comparison between the objects as follows. But it appears that it doesn't work when we pass collections of custom objects for deep comparison when they are large in number for example even for 50 or 100, the comparison takes forever.
Let me share you the code chunks to look at.
Minimal/simplified code reproducing the bug
Assignment class
Owner class
Code to generate a single Assignment object
Code to generate different assignment object
Code to generate list of Assignment objects
Code to generate different assignment objects
Code to generate an Owner object
Code to generate a different Owner object
Code to generate list of Owners
Code to generate a different list of Owners
JUnit test
Once you debug the test : DeepCompareCollections test as shown above , you will observe that the recursive comparison takes a lot of time to determine the difference between the two collections. We can adjust the number of owners and their corresponding assignments to observe the behavior further.
The text was updated successfully, but these errors were encountered: