Mock RestHighLevelClient for elasticsearch

HI
I would like to test my rest api in quarkus which internally calls elasticsearch using RestHighLevelClient.
My problem is that the RestHighLevelClient is not mockable and hence I cannot execute my unit test to test the api.
Any help is highly appreciated!
Regards,

Welcome!

Some users shared their solutions in this issue.

Would that work for you?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.