diff options
author | Jon Bratseth <bratseth@gmail.com> | 2020-12-03 10:16:37 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2020-12-03 10:16:37 +0100 |
commit | 868a770f58ff5616489886091d944a04e698dda5 (patch) | |
tree | 746404439f4df0d583fbe03e7429a99c42c705cd /container-search/src/test/java/com/yahoo/search/searchers | |
parent | 797b8ad6223492bcf0106b0a4001a7478526ed09 (diff) |
Simplify
Diffstat (limited to 'container-search/src/test/java/com/yahoo/search/searchers')
-rw-r--r-- | container-search/src/test/java/com/yahoo/search/searchers/test/QueryValidatorTestCase.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/searchers/test/QueryValidatorTestCase.java b/container-search/src/test/java/com/yahoo/search/searchers/test/QueryValidatorTestCase.java index 62089f48317..8789de7198c 100644 --- a/container-search/src/test/java/com/yahoo/search/searchers/test/QueryValidatorTestCase.java +++ b/container-search/src/test/java/com/yahoo/search/searchers/test/QueryValidatorTestCase.java @@ -1,19 +1,15 @@ // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.search.searchers.test; -import com.yahoo.config.subscription.ConfigGetter; import com.yahoo.prelude.IndexFacts; import com.yahoo.prelude.IndexModel; import com.yahoo.prelude.SearchDefinition; import com.yahoo.search.Query; -import com.yahoo.search.config.IndexInfoConfig; import com.yahoo.search.searchchain.Execution; import com.yahoo.search.searchers.QueryValidator; import org.junit.Test; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; /** @@ -33,7 +29,7 @@ public class QueryValidatorTestCase { new QueryValidator().search(new Query("?query=mystring:foo"), execution); try { - new QueryValidator().search(new Query("?query=mytensor:foo"), execution); + new QueryValidator().search(new Query("?query=sddocname%3Aproduct%20lfmModel25KeysV0%3A9%2A%20mytensor%3A%3E0"), execution); fail("Excpected validation error"); } catch (IllegalArgumentException e) { |