* ============LICENSE_START=======================================================\r
* org.onap.aai\r
* ================================================================================\r
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
- * Copyright © 2017 Amdocs\r
+ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.\r
+ * Copyright © 2017-2018 Amdocs\r
* ================================================================================\r
* Licensed under the Apache License, Version 2.0 (the "License");\r
* you may not use this file except in compliance with the License.\r
* See the License for the specific language governing permissions and\r
* limitations under the License.\r
* ============LICENSE_END=========================================================\r
- *\r
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
*/\r
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