com.lordofthejars.nosqlunit.elasticsearch.ElasticsearchAssertion Maven / Gradle / Ivy
package com.lordofthejars.nosqlunit.elasticsearch;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;
import org.elasticsearch.action.count.CountResponse;
import org.elasticsearch.action.get.GetRequestBuilder;
import org.elasticsearch.action.get.GetResponse;
import org.elasticsearch.client.Client;
import com.lordofthejars.nosqlunit.core.FailureHandler;
import com.lordofthejars.nosqlunit.elasticsearch.parser.DataReader;
import com.lordofthejars.nosqlunit.util.DeepEquals;
public class ElasticsearchAssertion {
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
private ElasticsearchAssertion() {
super();
}
public static final void strictAssertEquals(List