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