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 to verify that a method has been invoked with a certain API object as its argument just uses Object.equals for its equals implementation.
What solution would you like?
Implement equals/hashCode on all API POJOs.
Is your feature request related to a problem?
While developing unit tests for code that makes use of
opensearch-javawe 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 toverifythat a method has been invoked with a certain API object as its argument just usesObject.equalsfor itsequalsimplementation.What solution would you like?
Implement equals/hashCode on all API POJOs.