aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/search/test
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2020-11-10 23:32:31 +0100
committerJon Bratseth <bratseth@gmail.com>2020-11-10 23:32:31 +0100
commit094be744d6706e02c7299ac1c92b49a0b13a24c5 (patch)
tree297d1df9650694c26fc11aceff5444ed445e9096 /container-search/src/test/java/com/yahoo/search/test
parent0c68b00b2d3a9ddc191ed1733ba2f8699d1c3dc1 (diff)
Support setting specific variants unoverridable
Diffstat (limited to 'container-search/src/test/java/com/yahoo/search/test')
-rw-r--r--container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java5
1 files changed, 3 insertions, 2 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 a42a2ee55aa..8d93ee3ad5d 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
@@ -32,6 +32,7 @@ import com.yahoo.search.Searcher;
import com.yahoo.search.grouping.GroupingQueryParser;
import com.yahoo.search.query.QueryTree;
import com.yahoo.search.query.SessionId;
+import com.yahoo.search.query.profile.DimensionValues;
import com.yahoo.search.query.profile.QueryProfile;
import com.yahoo.search.query.profile.QueryProfileRegistry;
import com.yahoo.search.query.profile.compiled.CompiledQueryProfileRegistry;
@@ -427,7 +428,7 @@ public class QueryTestCase {
@Test
public void testQueryProfileInSubstitution() {
QueryProfile testProfile = new QueryProfile("test");
- testProfile.setOverridable("u", false, null);
+ testProfile.setOverridable("u", false, DimensionValues.empty);
testProfile.set("d","e", null);
testProfile.set("u","11", null);
testProfile.set("foo.bar", "wiz", null);
@@ -560,7 +561,7 @@ public class QueryTestCase {
@Test
public void testQueryPropertyResolveTracing() {
QueryProfile testProfile = new QueryProfile("test");
- testProfile.setOverridable("u", false, null);
+ testProfile.setOverridable("u", false, DimensionValues.empty);
testProfile.set("d","e", null);
testProfile.set("u","11", null);
testProfile.set("foo.bar", "wiz", null);