diff options
author | mark.j.leonard <mark.j.leonard@gmail.com> | 2018-09-21 16:07:37 +0100 |
---|---|---|
committer | mark.j.leonard <mark.j.leonard@gmail.com> | 2018-09-21 16:07:37 +0100 |
commit | 71393bb2bf9fb10962723e61cf0e70d9aa202645 (patch) | |
tree | b1a7c99248044d95353a01c864803e48fb891352 /src/test/java | |
parent | 61fd3fcf2ec5f474c7290347d9d77a923fa44460 (diff) |
Organise imports to ONAP Java standards
Fix all import ordering.
Change-Id: Ia0a0ef64eab7b1560c7dd1d54a1a9e1adee67a5e
Issue-ID: AAI-1650
Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
Diffstat (limited to 'src/test/java')
23 files changed, 88 insertions, 122 deletions
diff --git a/src/test/java/org/onap/aai/sa/auth/SearchDbServiceAuthTest.java b/src/test/java/org/onap/aai/sa/auth/SearchDbServiceAuthTest.java index 7a117b7..3ffb422 100644 --- a/src/test/java/org/onap/aai/sa/auth/SearchDbServiceAuthTest.java +++ b/src/test/java/org/onap/aai/sa/auth/SearchDbServiceAuthTest.java @@ -20,6 +20,10 @@ */
package org.onap.aai.sa.auth;
+import java.io.File;
+import java.io.IOException;
+import java.lang.reflect.Field;
+import java.lang.reflect.Modifier;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
@@ -28,11 +32,6 @@ import org.mockito.MockitoAnnotations; import org.onap.aai.sa.searchdbabstraction.util.SearchDbConstants;
import org.springframework.http.HttpHeaders;
-import java.io.File;
-import java.io.IOException;
-import java.lang.reflect.Field;
-import java.lang.reflect.Modifier;
-
// import javax.servlet.http.Cookie;
public class SearchDbServiceAuthTest {
diff --git a/src/test/java/org/onap/aai/sa/rest/ApiUtilsTest.java b/src/test/java/org/onap/aai/sa/rest/ApiUtilsTest.java index 0274dd9..457dbdd 100644 --- a/src/test/java/org/onap/aai/sa/rest/ApiUtilsTest.java +++ b/src/test/java/org/onap/aai/sa/rest/ApiUtilsTest.java @@ -20,11 +20,9 @@ */ 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 { diff --git a/src/test/java/org/onap/aai/sa/rest/BulkApiTest.java b/src/test/java/org/onap/aai/sa/rest/BulkApiTest.java index c7e9702..a1c255c 100644 --- a/src/test/java/org/onap/aai/sa/rest/BulkApiTest.java +++ b/src/test/java/org/onap/aai/sa/rest/BulkApiTest.java @@ -24,6 +24,8 @@ package org.onap.aai.sa.rest; 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; @@ -33,8 +35,6 @@ import org.springframework.http.MediaType; 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; /** diff --git a/src/test/java/org/onap/aai/sa/rest/DocumentApiTest.java b/src/test/java/org/onap/aai/sa/rest/DocumentApiTest.java index 49a10df..78fec3e 100644 --- a/src/test/java/org/onap/aai/sa/rest/DocumentApiTest.java +++ b/src/test/java/org/onap/aai/sa/rest/DocumentApiTest.java @@ -20,6 +20,13 @@ */ 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; @@ -36,22 +43,6 @@ import org.springframework.test.context.junit4.SpringRunner; 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 diff --git a/src/test/java/org/onap/aai/sa/rest/DocumentSchemaTest.java b/src/test/java/org/onap/aai/sa/rest/DocumentSchemaTest.java index ab1d293..44ed60c 100644 --- a/src/test/java/org/onap/aai/sa/rest/DocumentSchemaTest.java +++ b/src/test/java/org/onap/aai/sa/rest/DocumentSchemaTest.java @@ -20,18 +20,14 @@ */ 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 { diff --git a/src/test/java/org/onap/aai/sa/rest/DocumentTest.java b/src/test/java/org/onap/aai/sa/rest/DocumentTest.java index 83ba5a7..efff07b 100644 --- a/src/test/java/org/onap/aai/sa/rest/DocumentTest.java +++ b/src/test/java/org/onap/aai/sa/rest/DocumentTest.java @@ -21,6 +21,10 @@ package org.onap.aai.sa.rest;
import com.fasterxml.jackson.core.JsonProcessingException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+// import javax.ws.rs.core.HttpHeaders;
+import javax.ws.rs.core.MultivaluedMap;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
@@ -36,15 +40,10 @@ import org.onap.aai.sa.searchdbabstraction.entity.DocumentOperationResult; import org.onap.aai.sa.searchdbabstraction.entity.ErrorResult;
import org.onap.aai.sa.searchdbabstraction.entity.SearchHits;
import org.onap.aai.sa.searchdbabstraction.entity.SearchOperationResult;
+import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
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.MultivaluedMap;
-import org.springframework.http.HttpHeaders;
-
public class DocumentTest {
diff --git a/src/test/java/org/onap/aai/sa/rest/IndexApiTest.java b/src/test/java/org/onap/aai/sa/rest/IndexApiTest.java index 60e798a..0f5932b 100644 --- a/src/test/java/org/onap/aai/sa/rest/IndexApiTest.java +++ b/src/test/java/org/onap/aai/sa/rest/IndexApiTest.java @@ -21,6 +21,14 @@ 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; @@ -37,15 +45,6 @@ import org.springframework.test.context.junit4.SpringRunner; 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; diff --git a/src/test/java/org/onap/aai/sa/rest/SearchServiceApiHarness.java b/src/test/java/org/onap/aai/sa/rest/SearchServiceApiHarness.java index 854c061..0621cd8 100644 --- a/src/test/java/org/onap/aai/sa/rest/SearchServiceApiHarness.java +++ b/src/test/java/org/onap/aai/sa/rest/SearchServiceApiHarness.java @@ -20,13 +20,17 @@ */ 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 diff --git a/src/test/java/org/onap/aai/sa/rest/StubEsController.java b/src/test/java/org/onap/aai/sa/rest/StubEsController.java index 8cd25a6..0472283 100644 --- a/src/test/java/org/onap/aai/sa/rest/StubEsController.java +++ b/src/test/java/org/onap/aai/sa/rest/StubEsController.java @@ -20,20 +20,20 @@ */ 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 diff --git a/src/test/java/org/onap/aai/sa/searchdbabstraction/elasticsearch/config/ElasticSearchConfigTest.java b/src/test/java/org/onap/aai/sa/searchdbabstraction/elasticsearch/config/ElasticSearchConfigTest.java index eb65a82..8c4de81 100644 --- a/src/test/java/org/onap/aai/sa/searchdbabstraction/elasticsearch/config/ElasticSearchConfigTest.java +++ b/src/test/java/org/onap/aai/sa/searchdbabstraction/elasticsearch/config/ElasticSearchConfigTest.java @@ -20,13 +20,12 @@ */
package org.onap.aai.sa.searchdbabstraction.elasticsearch.config;
+import java.util.Properties;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
-
-import java.util.Properties;
public class ElasticSearchConfigTest {
@Autowired
diff --git a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/AggregationStatementTest.java b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/AggregationStatementTest.java index 6e80e37..495a456 100644 --- a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/AggregationStatementTest.java +++ b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/AggregationStatementTest.java @@ -20,13 +20,12 @@ */ 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(); diff --git a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/AggregationTest.java b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/AggregationTest.java index aee3ab2..d85e075 100644 --- a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/AggregationTest.java +++ b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/AggregationTest.java @@ -20,13 +20,12 @@ */ 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(); // diff --git a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/DateHistogramAggregationTest.java b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/DateHistogramAggregationTest.java index 4d60e58..6a3ecf7 100644 --- a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/DateHistogramAggregationTest.java +++ b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/DateHistogramAggregationTest.java @@ -20,13 +20,12 @@ */ 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(); diff --git a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/DateRangeAggregationTest.java b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/DateRangeAggregationTest.java index 4b6c221..3183687 100644 --- a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/DateRangeAggregationTest.java +++ b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/DateRangeAggregationTest.java @@ -20,13 +20,12 @@ */ 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(); diff --git a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/DateRangeTest.java b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/DateRangeTest.java index d89347a..52880c0 100644 --- a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/DateRangeTest.java +++ b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/DateRangeTest.java @@ -20,13 +20,12 @@ */ 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(); diff --git a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/FilterTest.java b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/FilterTest.java index 18a58cb..7b7abd0 100644 --- a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/FilterTest.java +++ b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/FilterTest.java @@ -23,10 +23,8 @@ package org.onap.aai.sa.searchdbabstraction.searchapi; 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 { diff --git a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/GroupByAggregationTest.java b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/GroupByAggregationTest.java index 35dd18f..be50243 100644 --- a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/GroupByAggregationTest.java +++ b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/GroupByAggregationTest.java @@ -20,13 +20,12 @@ */ 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(); diff --git a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/QueryTest.java b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/QueryTest.java index 183317a..0e60649 100644 --- a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/QueryTest.java +++ b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/QueryTest.java @@ -20,18 +20,14 @@ */ 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 { diff --git a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/RangeQueryTest.java b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/RangeQueryTest.java index ab4d5b9..a06a2a0 100644 --- a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/RangeQueryTest.java +++ b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/RangeQueryTest.java @@ -21,14 +21,12 @@ package org.onap.aai.sa.searchdbabstraction.searchapi;
import com.fasterxml.jackson.databind.ObjectMapper;
+import java.io.File;
+import java.io.IOException;
import org.junit.Assert;
import org.junit.Test;
import org.onap.aai.sa.rest.TestUtils;
-import java.io.File;
-import java.io.IOException;
-import java.util.Date;
-
public class RangeQueryTest {
@Test(expected=IllegalArgumentException.class)
diff --git a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/SearchStatementTest.java b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/SearchStatementTest.java index 81bf0eb..03cf238 100644 --- a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/SearchStatementTest.java +++ b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/SearchStatementTest.java @@ -20,19 +20,19 @@ */ 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 { diff --git a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/SortTest.java b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/SortTest.java index 2d84a00..9b93a25 100644 --- a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/SortTest.java +++ b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/SortTest.java @@ -20,15 +20,13 @@ */ 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 { diff --git a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/TermQueryTest.java b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/TermQueryTest.java index 50b97e4..403ad6e 100644 --- a/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/TermQueryTest.java +++ b/src/test/java/org/onap/aai/sa/searchdbabstraction/searchapi/TermQueryTest.java @@ -21,11 +21,10 @@ package org.onap.aai.sa.searchdbabstraction.searchapi;
import com.fasterxml.jackson.databind.ObjectMapper;
+import java.io.IOException;
import org.junit.Assert;
import org.junit.Test;
-import java.io.IOException;
-
public class TermQueryTest {
@Test
diff --git a/src/test/java/org/onap/aai/sa/searchdbabstraction/util/ElasticSearchPayloadTranslatorTest.java b/src/test/java/org/onap/aai/sa/searchdbabstraction/util/ElasticSearchPayloadTranslatorTest.java index ba5cb48..40209d6 100644 --- a/src/test/java/org/onap/aai/sa/searchdbabstraction/util/ElasticSearchPayloadTranslatorTest.java +++ b/src/test/java/org/onap/aai/sa/searchdbabstraction/util/ElasticSearchPayloadTranslatorTest.java @@ -20,16 +20,14 @@ */ 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 { |