Open ginkel opened 1 year ago
This makes sense. Feel free to submit a PR.
I think as with #298 this doesn't make much sense w/o working code generation, does it?
I see that there is some code generation already, is adding the equals/hashCode methods a possibility now?
Is your feature request related to a problem?
While developing unit tests for code that makes use of
opensearch-java
we noticed that the invocations are pretty hard to mock/verify (e.g., using Mockito) as the API objects do not implement equals/hashCode. This causes the effect that it is very hard toverify
that a method has been invoked with a certain API object as its argument just usesObject.equals
for itsequals
implementation.What solution would you like?
Implement equals/hashCode on all API POJOs.