Class NoOpClient

java.lang.Object
org.elasticsearch.client.support.AbstractClient
org.elasticsearch.test.client.NoOpClient
All Implemented Interfaces:
Closeable, AutoCloseable, Client, ElasticsearchClient, org.elasticsearch.core.Releasable

public class NoOpClient extends AbstractClient
Client that always responds with null to every request. Override doExecute(ActionType, ActionRequest, ActionListener) for testing. See also NoOpNodeClient if you need to mock a NodeClient.