# Testing rest clients in Java

**URL:** <https://discuss.elastic.co/t/testing-rest-clients-in-java/106836>\
**Category:** Elasticsearch\
**Created:** [November 8, 2017, 9:50am UTC](https://discuss.elastic.co/t/testing-rest-clients-in-java/106836 "2017-11-08T09:50:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 8, 2017, 10:14am UTC](https://discuss.elastic.co/t/testing-rest-clients-in-java/106836/2 "2017-11-08T10:14:55Z")

</div>

You can read:

> [@In memory testing with RestHighLevelClient](https://discuss.elastic.co/t/in-memory-testing-with-resthighlevelclient/106196/6):
>
> This will not happen. To do integration tests, you can: Use the Gradle tools elasticsearch already has. You can read some information about this here: [#21119](https://github.com/elastic/elasticsearch/issues/21119). This [sample project](https://github.com/joel-costigliola/elastic-search-test) shows how to use Elasticsearch Test Classes Use the Maven plugin: [GitHub - alexcojocaru/elasticsearch-maven-plugin: A Maven plugin to run a single node Elasticsearch cluster during the integration test phase of a build](https://github.com/alexcojocaru/elasticsearch-maven-plugin) Use Ant scripts like [https://david.pilato.fr/blog/2016-07-29-elasticsearch-real-integration-tests/](http://david.pilato.fr/blog/2016/10/18/elasticsearch-real-integration-tests-updated-for-ga/) …

---

_[View the full topic](https://discuss.elastic.co/t/testing-rest-clients-in-java/106836)._
