Fix all import ordering.
Change-Id: Ia0a0ef64eab7b1560c7dd1d54a1a9e1adee67a5e
Issue-ID: AAI-1650
Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
*/\r
package org.onap.aai.sa;\r
\r
+import java.util.HashMap;\r
import org.eclipse.jetty.util.security.Password;\r
import org.springframework.boot.autoconfigure.SpringBootApplication;\r
import org.springframework.boot.builder.SpringApplicationBuilder;\r
import org.springframework.boot.web.support.SpringBootServletInitializer;\r
\r
-import java.util.HashMap;\r
-\r
@SpringBootApplication\r
public class Application extends SpringBootServletInitializer {\r
\r
*/
package org.onap.aai.sa.auth;
- import org.springframework.http.HttpHeaders;
-
import javax.servlet.http.Cookie;
+import org.springframework.http.HttpHeaders;
public class SearchDbServiceAuth {
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Timer;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import org.onap.aai.cl.api.Logger;
import org.onap.aai.cl.eelf.LoggerFactory;
import org.onap.aai.sa.searchdbabstraction.util.SearchDbConstants;
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileReader;
-import java.io.IOException;
-import java.util.*;
-
public class SearchDbServiceAuthCore {
private static Logger logger = LoggerFactory.getInstance()
package org.onap.aai.sa.rest;
import com.fasterxml.jackson.databind.ObjectMapper;
-
-import org.onap.aai.sa.searchdbabstraction.logging.SearchDbMsgs;
-import org.onap.aai.sa.searchdbabstraction.util.SearchDbConstants;
-import org.onap.aai.cl.api.Logger;
-import org.onap.aai.cl.eelf.LoggerFactory;
-import org.onap.aai.sa.rest.AnalyzerSchema;
-import org.onap.aai.sa.rest.FilterSchema;
-
import java.io.File;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicBoolean;
+import org.onap.aai.cl.api.Logger;
+import org.onap.aai.cl.eelf.LoggerFactory;
+import org.onap.aai.sa.searchdbabstraction.logging.SearchDbMsgs;
+import org.onap.aai.sa.searchdbabstraction.util.SearchDbConstants;
/**
* This class encapsulates the configuration of the predefined
*/
package org.onap.aai.sa.rest;
-import org.onap.aai.sa.searchdbabstraction.elasticsearch.dao.ElasticSearchHttpController;
-import org.onap.aai.sa.searchdbabstraction.logging.SearchDbMsgs;
+import java.util.concurrent.atomic.AtomicBoolean;
+import javax.servlet.http.HttpServletRequest;
import org.onap.aai.cl.api.LogFields;
import org.onap.aai.cl.api.LogLine;
import org.onap.aai.cl.api.Logger;
import org.onap.aai.cl.eelf.LoggerFactory;
-import org.onap.aai.sa.rest.AnalyzerSchema;
-
-import java.util.concurrent.atomic.AtomicBoolean;
-import javax.servlet.http.HttpServletRequest;
-
-
+import org.onap.aai.sa.searchdbabstraction.elasticsearch.dao.ElasticSearchHttpController;
+import org.onap.aai.sa.searchdbabstraction.logging.SearchDbMsgs;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
-import org.springframework.http.HttpStatus;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestHeader;
*/
package org.onap.aai.sa.rest;
+import java.util.UUID;
+import javax.servlet.http.HttpServletRequest;
import org.onap.aai.cl.mdc.MdcContext;
import org.onap.aai.sa.searchdbabstraction.util.SearchDbConstants;
import org.slf4j.MDC;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
-import javax.servlet.http.HttpServletRequest;
-import java.util.UUID;
-
// Spring Imports
public class ApiUtils {
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.fge.jsonschema.main.JsonSchema;
import com.github.fge.jsonschema.main.JsonSchemaFactory;
+import java.io.IOException;
+import java.util.concurrent.atomic.AtomicBoolean;
+import javax.servlet.http.HttpServletRequest;
import org.onap.aai.cl.api.LogFields;
import org.onap.aai.cl.api.LogLine;
import org.onap.aai.cl.api.Logger;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
-import javax.servlet.http.HttpServletRequest;
-import java.io.IOException;
-import java.util.concurrent.atomic.AtomicBoolean;
-
/**
* This class encapsulates the REST end points associated with performing
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
-
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+//import javax.ws.rs.core.HttpHeaders;
+//import javax.ws.rs.core.MediaType;
+//import javax.ws.rs.core.Response;
+//import javax.ws.rs.core.Response.Status;
+// Spring Imports
import org.onap.aai.cl.api.LogFields;
import org.onap.aai.cl.api.LogLine;
import org.onap.aai.cl.api.Logger;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-//import javax.ws.rs.core.HttpHeaders;
-//import javax.ws.rs.core.MediaType;
-//import javax.ws.rs.core.Response;
-//import javax.ws.rs.core.Response.Status;
-// Spring Imports
-
public class DocumentApi {
private static final String REQUEST_HEADER_RESOURCE_VERSION = "If-Match";
private static final String RESPONSE_HEADER_RESOURCE_VERSION = "ETag";
package org.onap.aai.sa.rest;
import com.fasterxml.jackson.databind.ObjectMapper;
-
-import org.onap.aai.sa.searchdbabstraction.elasticsearch.dao.DocumentStoreInterface;
-import org.onap.aai.sa.searchdbabstraction.elasticsearch.exception.DocumentStoreOperationException;
-import org.onap.aai.sa.searchdbabstraction.entity.OperationResult;
-import org.onap.aai.sa.searchdbabstraction.logging.SearchDbMsgs;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import javax.servlet.http.HttpServletRequest;
import org.onap.aai.cl.api.LogFields;
import org.onap.aai.cl.api.LogLine;
import org.onap.aai.cl.api.Logger;
import org.onap.aai.cl.eelf.LoggerFactory;
-import org.onap.aai.sa.rest.DocumentFieldSchema;
-import org.onap.aai.sa.rest.DocumentSchema;
-import org.slf4j.MDC;
-
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import javax.servlet.http.HttpServletRequest;
-
+import org.onap.aai.sa.searchdbabstraction.elasticsearch.dao.DocumentStoreInterface;
+import org.onap.aai.sa.searchdbabstraction.elasticsearch.exception.DocumentStoreOperationException;
+import org.onap.aai.sa.searchdbabstraction.entity.OperationResult;
+import org.onap.aai.sa.searchdbabstraction.logging.SearchDbMsgs;
// Spring Imports
import org.springframework.http.HttpHeaders;
-import org.springframework.http.MediaType;
-import org.springframework.http.ResponseEntity;
import org.springframework.http.HttpStatus;
// import org.springframework.http.server.HttpServletRequest;
+import org.springframework.http.MediaType;
+import org.springframework.http.ResponseEntity;
/**
*/
package org.onap.aai.sa.rest;
+import java.security.cert.X509Certificate;
+import javax.security.auth.x500.X500Principal;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
import org.onap.aai.sa.auth.SearchDbServiceAuth;
import org.onap.aai.sa.rest.ApiUtils.Action;
import org.onap.aai.sa.searchdbabstraction.elasticsearch.dao.DocumentStoreInterface;
import org.springframework.http.ResponseEntity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.stereotype.Component;
-import org.springframework.web.bind.annotation.*;
-
-import javax.security.auth.x500.X500Principal;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import java.security.cert.X509Certificate;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestHeader;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RestController;
@Component
@EnableWebSecurity
import org.onap.aai.sa.rest.BulkRequest;
+import org.onap.aai.sa.rest.DocumentSchema;
import org.onap.aai.sa.searchdbabstraction.elasticsearch.exception.DocumentStoreOperationException;
import org.onap.aai.sa.searchdbabstraction.entity.DocumentOperationResult;
import org.onap.aai.sa.searchdbabstraction.entity.OperationResult;
import org.onap.aai.sa.searchdbabstraction.entity.SearchOperationResult;
-import org.onap.aai.sa.rest.DocumentSchema;
public interface DocumentStoreInterface {
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
-
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
-
import java.util.HashMap;
import java.util.Map;
package org.onap.aai.sa.searchdbabstraction.entity;
import com.fasterxml.jackson.annotation.JsonProperty;
-
import java.util.Arrays;
public class AggregationBucket {
package org.onap.aai.sa.searchdbabstraction.entity;
import com.fasterxml.jackson.annotation.JsonProperty;
-
import java.util.Arrays;
public class AggregationResult {
*/
package org.onap.aai.sa.searchdbabstraction.logging;
-import org.onap.aai.cl.eelf.LogMessageEnum;
import com.att.eelf.i18n.EELFResourceManager;
+import org.onap.aai.cl.eelf.LogMessageEnum;
public enum SearchDbMsgs implements LogMessageEnum {
package org.onap.aai.sa.searchdbabstraction.searchapi;
import com.fasterxml.jackson.annotation.JsonProperty;
-
import java.util.Arrays;
public class AggregationStatement {
package org.onap.aai.sa.searchdbabstraction.searchapi;
import com.fasterxml.jackson.annotation.JsonProperty;
-import org.radeox.util.logging.Logger;
-
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
+import org.radeox.util.logging.Logger;
/**
* This class represents the structure of a search statement.
*/
package org.onap.aai.sa.searchdbabstraction.searchapi;
-import org.radeox.util.logging.Logger;
-
import com.fasterxml.jackson.annotation.JsonProperty;
+import org.radeox.util.logging.Logger;
/**
* This class represents the structure of a search statement.
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Arrays;
-
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
*/
package org.onap.aai.sa.searchdbabstraction.service;
+import java.io.FileInputStream;
+import java.util.Properties;
+import org.onap.aai.cl.api.Logger;
+import org.onap.aai.cl.eelf.LoggerFactory;
import org.onap.aai.sa.searchdbabstraction.elasticsearch.config.ElasticSearchConfig;
import org.onap.aai.sa.searchdbabstraction.elasticsearch.dao.ElasticSearchHttpController;
import org.onap.aai.sa.searchdbabstraction.logging.SearchDbMsgs;
import org.onap.aai.sa.searchdbabstraction.util.SearchDbConstants;
-import org.onap.aai.cl.api.Logger;
-import org.onap.aai.cl.eelf.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
-import java.io.FileInputStream;
-import java.util.Properties;
-
public class SearchService {
private ElasticSearchHttpController esController = null;
package org.onap.aai.sa.searchdbabstraction.util;
import com.fasterxml.jackson.core.JsonProcessingException;
+import java.util.Iterator;
+import java.util.Set;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.onap.aai.sa.searchdbabstraction.entity.AggregationBucket;
import org.onap.aai.sa.searchdbabstraction.entity.AggregationResult;
-import java.util.Iterator;
-import java.util.Set;
-
public class AggregationParsingUtil {
public static AggregationResult[] parseAggregationResults(JSONObject aggregations)
throws JsonProcessingException {
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
-
-import org.apache.commons.io.IOUtils;
-import org.onap.aai.sa.rest.DocumentFieldSchema;
-import org.onap.aai.sa.rest.DocumentSchema;
-
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
+import org.apache.commons.io.IOUtils;
+import org.onap.aai.sa.rest.DocumentFieldSchema;
+import org.onap.aai.sa.rest.DocumentSchema;
public class DocumentSchemaUtil {
*/
package org.onap.aai.sa.searchdbabstraction.util;
+import com.jayway.jsonpath.DocumentContext;
+import com.jayway.jsonpath.JsonPath;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.List;
import java.util.Map;
-
import org.apache.commons.io.IOUtils;
import org.json.JSONArray;
import org.json.JSONException;
import org.onap.aai.cl.eelf.LoggerFactory;
import org.onap.aai.sa.searchdbabstraction.logging.SearchDbMsgs;
-import com.jayway.jsonpath.DocumentContext;
-import com.jayway.jsonpath.JsonPath;
-
/**
* This class as the name suggests is to translate the payload of PUT & POST requests
*/\r
package org.onap.aai.sa.auth;\r
\r
+import java.io.File;\r
+import java.io.IOException;\r
+import java.lang.reflect.Field;\r
+import java.lang.reflect.Modifier;\r
import org.junit.Assert;\r
import org.junit.Before;\r
import org.junit.Test;\r
import org.onap.aai.sa.searchdbabstraction.util.SearchDbConstants;\r
import org.springframework.http.HttpHeaders;\r
\r
-import java.io.File;\r
-import java.io.IOException;\r
-import java.lang.reflect.Field;\r
-import java.lang.reflect.Modifier;\r
-\r
// import javax.servlet.http.Cookie;\r
\r
public class SearchDbServiceAuthTest {\r
*/
package org.onap.aai.sa.rest;
-import org.junit.Test;
-import org.onap.aai.sa.rest.ApiUtils;
-
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
+
+import org.junit.Test;
public class ApiUtilsTest {
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
+import java.io.File;
+import java.io.IOException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.ResultActions;
-import java.io.File;
-import java.io.IOException;
/**
*/
package org.onap.aai.sa.rest;
+import static org.junit.Assert.assertTrue;
+import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete;
+import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
+import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
+import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put;
+
+import java.io.IOException;
//import org.glassfish.jersey.server.ResourceConfig;
//import org.glassfish.jersey.test.JerseyTest;
import org.json.simple.JSONObject;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.MvcResult;
-import javax.ws.rs.client.Entity;
-import javax.ws.rs.client.Invocation.Builder;
-import javax.ws.rs.client.WebTarget;
-import javax.ws.rs.core.Application;
-import java.io.IOException;
-
-import static org.junit.Assert.assertTrue;
-
-import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
-import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
-import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put;
-import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete;
-import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
-import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
-import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
-
@RunWith(SpringRunner.class)
@SpringBootTest
@AutoConfigureMockMvc
*/
package org.onap.aai.sa.rest;
+import static org.junit.Assert.assertTrue;
+
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
-import org.junit.Test;
-import org.onap.aai.sa.rest.DocumentSchema;
-
-import java.io.BufferedReader;
import java.io.File;
-import java.io.FileReader;
import java.io.IOException;
-
-import static org.junit.Assert.assertTrue;
+import org.junit.Test;
public class DocumentSchemaTest {
package org.onap.aai.sa.rest;\r
\r
import com.fasterxml.jackson.core.JsonProcessingException;\r
+import javax.servlet.http.HttpServletRequest;\r
+import javax.servlet.http.HttpServletResponse;\r
+// import javax.ws.rs.core.HttpHeaders;\r
+import javax.ws.rs.core.MultivaluedMap;\r
import org.junit.Assert;\r
import org.junit.Before;\r
import org.junit.Ignore;\r
import org.onap.aai.sa.searchdbabstraction.entity.ErrorResult;\r
import org.onap.aai.sa.searchdbabstraction.entity.SearchHits;\r
import org.onap.aai.sa.searchdbabstraction.entity.SearchOperationResult;\r
+import org.springframework.http.HttpHeaders;\r
import org.springframework.http.HttpStatus;\r
import org.springframework.http.ResponseEntity;\r
\r
-import javax.servlet.http.HttpServletRequest;\r
-import javax.servlet.http.HttpServletResponse;\r
-// import javax.ws.rs.core.HttpHeaders;\r
-import javax.ws.rs.core.MultivaluedMap;\r
-import org.springframework.http.HttpHeaders;\r
-\r
\r
public class DocumentTest {\r
\r
package org.onap.aai.sa.rest;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete;
+import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.IOException;
import org.junit.Before;
// import org.glassfish.jersey.server.ResourceConfig;
// import org.glassfish.jersey.test.JerseyTest;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.MvcResult;
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete;
-import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put;
-
//import javax.ws.rs.core.Application;
//import javax.ws.rs.core.Response;
*/
package org.onap.aai.sa.rest;
- import org.springframework.http.HttpHeaders;
+ import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
-import org.springframework.web.bind.annotation.*;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestHeader;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RestController;
@Component
@RestController
*/
package org.onap.aai.sa.rest;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
import org.json.simple.JSONObject;
-import org.onap.aai.sa.rest.AnalysisConfiguration;
-import org.onap.aai.sa.rest.BulkRequest;
import org.onap.aai.sa.searchdbabstraction.elasticsearch.dao.DocumentStoreDataEntity;
import org.onap.aai.sa.searchdbabstraction.elasticsearch.dao.DocumentStoreInterface;
import org.onap.aai.sa.searchdbabstraction.elasticsearch.exception.DocumentStoreOperationException;
-import org.onap.aai.sa.searchdbabstraction.entity.*;
-import org.onap.aai.sa.searchdbabstraction.util.DocumentSchemaUtil;
import org.onap.aai.sa.searchdbabstraction.entity.Document;
-import org.onap.aai.sa.rest.DocumentSchema;
-
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
+import org.onap.aai.sa.searchdbabstraction.entity.DocumentOperationResult;
+import org.onap.aai.sa.searchdbabstraction.entity.OperationResult;
+import org.onap.aai.sa.searchdbabstraction.entity.SearchHit;
+import org.onap.aai.sa.searchdbabstraction.entity.SearchHits;
+import org.onap.aai.sa.searchdbabstraction.entity.SearchOperationResult;
+import org.onap.aai.sa.searchdbabstraction.util.DocumentSchemaUtil;
/**
* This class implements a stubbed version of the document store DAO so
*/\r
package org.onap.aai.sa.searchdbabstraction.elasticsearch.config;\r
\r
+import java.util.Properties;\r
import org.junit.Assert;\r
import org.junit.Before;\r
import org.junit.Ignore;\r
import org.junit.Test;\r
import org.springframework.beans.factory.annotation.Autowired;\r
-\r
-import java.util.Properties;\r
public class ElasticSearchConfigTest {\r
\r
@Autowired\r
*/
package org.onap.aai.sa.searchdbabstraction.searchapi;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import org.junit.Test;
-import org.onap.aai.sa.searchdbabstraction.searchapi.AggregationStatement;
-
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.junit.Test;
+
public class AggregationStatementTest {
private static ObjectMapper mapper = new ObjectMapper();
*/
package org.onap.aai.sa.searchdbabstraction.searchapi;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import org.junit.Test;
-import org.onap.aai.sa.searchdbabstraction.searchapi.Aggregation;
-
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.junit.Test;
+
public class AggregationTest {
private static ObjectMapper mapper = new ObjectMapper();
//
*/
package org.onap.aai.sa.searchdbabstraction.searchapi;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import org.junit.Test;
-import org.onap.aai.sa.searchdbabstraction.searchapi.DateHistogramAggregation;
-
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.junit.Test;
+
public class DateHistogramAggregationTest {
ObjectMapper mapper = new ObjectMapper();
*/
package org.onap.aai.sa.searchdbabstraction.searchapi;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import org.junit.Test;
-import org.onap.aai.sa.searchdbabstraction.searchapi.DateRangeAggregation;
-
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.junit.Test;
+
public class DateRangeAggregationTest {
private static ObjectMapper mapper = new ObjectMapper();
*/
package org.onap.aai.sa.searchdbabstraction.searchapi;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import org.junit.Test;
-import org.onap.aai.sa.searchdbabstraction.searchapi.DateRange;
-
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.junit.Test;
+
public class DateRangeTest {
private static ObjectMapper mapper = new ObjectMapper();
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
-import org.junit.Test;
-import org.onap.aai.sa.searchdbabstraction.searchapi.Filter;
-
import java.io.IOException;
+import org.junit.Test;
public class FilterTest {
*/
package org.onap.aai.sa.searchdbabstraction.searchapi;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import org.junit.Test;
-import org.onap.aai.sa.searchdbabstraction.searchapi.GroupByAggregation;
-
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.junit.Test;
+
public class GroupByAggregationTest {
private static ObjectMapper mapper = new ObjectMapper();
*/
package org.onap.aai.sa.searchdbabstraction.searchapi;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
-import org.junit.Test;
-import org.onap.aai.sa.searchdbabstraction.searchapi.ParsedQuery;
-import org.onap.aai.sa.searchdbabstraction.searchapi.RangeQuery;
-import org.onap.aai.sa.searchdbabstraction.searchapi.TermQuery;
-
import java.io.IOException;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import org.junit.Test;
public class QueryTest {
package org.onap.aai.sa.searchdbabstraction.searchapi;\r
\r
import com.fasterxml.jackson.databind.ObjectMapper;\r
+import java.io.File;\r
+import java.io.IOException;\r
import org.junit.Assert;\r
import org.junit.Test;\r
import org.onap.aai.sa.rest.TestUtils;\r
\r
-import java.io.File;\r
-import java.io.IOException;\r
-import java.util.Date;\r
-\r
public class RangeQueryTest {\r
\r
@Test(expected=IllegalArgumentException.class)\r
*/
package org.onap.aai.sa.searchdbabstraction.searchapi;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
-import org.junit.Test;
-import org.onap.aai.sa.rest.TestUtils;
-import org.onap.aai.sa.searchdbabstraction.searchapi.Aggregation;
-import org.onap.aai.sa.searchdbabstraction.searchapi.QueryStatement;
-import org.onap.aai.sa.searchdbabstraction.searchapi.SearchStatement;
-
import java.io.File;
import java.io.IOException;
-
-import static org.junit.Assert.*;
+import org.junit.Test;
+import org.onap.aai.sa.rest.TestUtils;
public class SearchStatementTest {
*/
package org.onap.aai.sa.searchdbabstraction.searchapi;
+import static org.junit.Assert.assertTrue;
+
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
-import org.junit.Test;
-import org.onap.aai.sa.searchdbabstraction.searchapi.Sort;
-
import java.io.IOException;
-
-import static org.junit.Assert.assertTrue;
+import org.junit.Test;
public class SortTest {
package org.onap.aai.sa.searchdbabstraction.searchapi;\r
\r
import com.fasterxml.jackson.databind.ObjectMapper;\r
+import java.io.IOException;\r
import org.junit.Assert;\r
import org.junit.Test;\r
\r
-import java.io.IOException;\r
-\r
public class TermQueryTest {\r
\r
@Test\r
*/
package org.onap.aai.sa.searchdbabstraction.util;
-import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.FileInputStream;
-
import org.apache.commons.io.IOUtils;
import org.junit.Before;
import org.junit.Test;
-import org.onap.aai.sa.rest.TestUtils;
public class ElasticSearchPayloadTranslatorTest {