Help needed with using ESTestCase


(Bacem Hagui) #1

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.


(David Pilato) #2

I shared some ideas about integration testing at In memory testing with RestHighLevelClient

HTH


(system) #3

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