I am trying to perform unit tests on ElasticSearch methods written in Java. My methods are composed of a query builder and then a parser for the json reply received from the server after the query is received.
I would like to test these methods and the results in the replies they give me by creating a local in-memory elasticsearch server which will be populated by a file containing a limited amount of data.
My ES version is 5.6.8 so i know that running an embedded server is no longer supported and that I should use ESTestCase for unit testing. I was unfortunately unable to find any working examples or tutorials to perform what I am trying to do.
I am a beginner so a working example will be very much appreciated.