-
Notifications
You must be signed in to change notification settings - Fork 40
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
Implement equals for the ImmutableMetadata object #511
Comments
💯 |
Should we consider other types that could benefit from this as well?. I don't think it's needed for |
Yes this is probably something we should look at. I haven't seen other problem for now but I haven't test with Structure I will check it |
@toddbaert I've looked at I think we are good now, except if we want to introduce it for the
|
Thanks @thomaspoignant ! I could see some use-cases for hasing/comparing |
Context
When working with an
ImmutableMetadata
it is hard to write tests because we cannot compare aFlagEvaluationDetails
anymore.The JUNIT method
assertEquals
is comparing the reference of the object.Expected behavior
We should be able to use
assertEquals
for the wholeFlagEvaluationDetails
object.For this we should probably implement the
equals()
method in theImmutableMetadata
object.The text was updated successfully, but these errors were encountered: