ElasticSearchTestCase : while Creating client instance using ESIntegTestCase ElasticSearchTestCase : while Creating client instance using ESIntegTestCase elasticsearch elasticsearch

ElasticSearchTestCase : while Creating client instance using ESIntegTestCase


I suppose it happens because a test cluster is not initialized yet. There is no need to have the client variable static. I'd propose to use @Before annotation and instance variable