Fix simple Sonar Lint issues
[aai/search-data-service.git] / src / test / java / org / onap / aai / sa / searchdbabstraction / searchapi / TermQueryTest.java
index 50b97e4..5a15913 100644 (file)
 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
     public void testAllMethods() throws IOException {\r
-\r
         String field = "searchTags.nested";\r
         String stringValue = "theValue.nested";\r
         String termQueryWithStringValueJson = "{\"field\": \"" + field + "\", \"value\": \"" + stringValue + "\"}";\r
-        String termQueryWithStringValueExpectedES = "{\"term\": {\"" + field + "\" : \"" + stringValue + "\"}}";\r
 \r
         ObjectMapper mapper = new ObjectMapper();\r
         TermQuery stringTermQuery = mapper.readValue(termQueryWithStringValueJson, TermQuery.class);\r