diff options
author | jonmv <venstad@gmail.com> | 2022-10-21 12:29:14 +0200 |
---|---|---|
committer | jonmv <venstad@gmail.com> | 2022-10-21 12:29:14 +0200 |
commit | d5b018b37a636a0ef7470cd5ee610cedc1f3e41d (patch) | |
tree | 611a54037fbe65f06309a9c1ae1fbb3c6bc7ba48 /container-search | |
parent | fb62b7f6662d8cf922752c45b8cac2f5d4c47383 (diff) |
Remove left-over from old pR
Diffstat (limited to 'container-search')
-rw-r--r-- | container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java b/container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java index 5b972e40774..bd9bffea118 100644 --- a/container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java +++ b/container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java @@ -44,7 +44,6 @@ import com.yahoo.search.query.profile.types.QueryProfileType; import com.yahoo.search.result.Hit; import com.yahoo.search.searchchain.Execution; import com.yahoo.yolean.Exceptions; -import org.json.JSONObject; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -57,7 +56,14 @@ import java.util.Map; import java.util.Set; import java.util.stream.Collectors; -import static org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNotSame; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; /** * @author bratseth @@ -65,17 +71,6 @@ import static org.junit.jupiter.api.Assertions.*; public class QueryTestCase { @Test - void testIt() { - JSONObject newroot = new JSONObject("{\"key\": 3}"); - var hit = new FastHit(); - hit.setField("data", (JsonProducer) s -> s.append(newroot)); - var field = hit.getField("data"); - if (field instanceof JsonProducer) { - System.out.println((((JsonProducer) field).toJson())); - } - } - - @Test void testSimpleFunctionality() { Query q = new Query(QueryTestCase.httpEncode("/sdfsd.html?query=this is a simple query&aParameter")); assertEquals("this is a simple query", q.getModel().getQueryString()); |