diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-02-05 12:43:36 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-02-05 12:43:36 +0100 |
commit | 5794c369b4dcfdc85163158d49788d6303bbf564 (patch) | |
tree | 065786cd1ca8d4e0852252ca4dacbe479e268520 /config-model/src/test/java/com/yahoo/searchdefinition/derived/SimpleInheritTestCase.java | |
parent | ab84971140f1782c0c7a693dd45c324766094c7c (diff) |
Use query profiles already read
Diffstat (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/derived/SimpleInheritTestCase.java')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/derived/SimpleInheritTestCase.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/derived/SimpleInheritTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/derived/SimpleInheritTestCase.java index f7794d3439e..f4edc1dd0ae 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/derived/SimpleInheritTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/derived/SimpleInheritTestCase.java @@ -1,6 +1,7 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.searchdefinition.derived; +import com.yahoo.search.query.profile.QueryProfileRegistry; import com.yahoo.searchdefinition.Search; import com.yahoo.searchdefinition.SearchBuilder; import com.yahoo.searchdefinition.parser.ParseException; @@ -31,7 +32,9 @@ public class SimpleInheritTestCase extends AbstractExportingTestCase { toDir.mkdirs(); deleteContent(toDir); - DerivedConfiguration config = new DerivedConfiguration(search, builder.getRankProfileRegistry()); + DerivedConfiguration config = new DerivedConfiguration(search, + builder.getRankProfileRegistry(), + new QueryProfileRegistry()); config.export(toDirName); checkDir(toDirName, expectedResultsDirName); |