diff options
author | Jon Bratseth <bratseth@gmail.com> | 2020-11-10 23:32:31 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2020-11-10 23:32:31 +0100 |
commit | 094be744d6706e02c7299ac1c92b49a0b13a24c5 (patch) | |
tree | 297d1df9650694c26fc11aceff5444ed445e9096 /container-search/src/test/java/com/yahoo/search/test | |
parent | 0c68b00b2d3a9ddc191ed1733ba2f8699d1c3dc1 (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.java | 5 |
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); |