Closed Ichigo85 closed 4 years ago
the right way is Array.equals.
Yup, correct.
What I don't understand is why it's a flaky test, it does not fail every time.
Ah, looks like it happens when the randomly generated array is empty:
User@737a135b[contentBytes={}]
User@687ef2e0[contentBytes={}]
newPropertyValueEqualsOriginalPropertyValue false
originalObjectEqualsModifiedObject true
Latest release should fix this problem. Please give it a try.
Hi. I have a strange issue, it seems a flaky test, because sometimes testing all my POJOs works, sometimes don't with the following error.
This kind of error only occurs on classes with a byte[] property, and test fails randomly. The equals method is written like this (generated by IntelliJ):
I think, in this case, the error is probably in class SignificantObjectPropertyEqualityConsistentAsserter, on this line
boolean newPropertyValueEqualsOriginalPropertyValue = newPropertyValue.equals(originalPropertyValue);
because in this case the right way is Array.equals...What I don't understand is why it's a flaky test, it does not fail every time.