diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-11-26 15:00:16 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-11-26 15:00:16 +0100 |
commit | e3c64c48445d85054292b6fe90c3347d5ec327f2 (patch) | |
tree | 9c4f8509699a74ec614633159d1eb3171482d456 /config-model/src/test/java/com/yahoo/searchdefinition/RankPropertiesTestCase.java | |
parent | 04cc3c48130b8397c04335948e5971914b2eaf22 (diff) |
Model the config model view of model-integration
This is to make it clearer that these methods are part
of the config model API.
Diffstat (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/RankPropertiesTestCase.java')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/RankPropertiesTestCase.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/RankPropertiesTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/RankPropertiesTestCase.java index 9ee32c7e6b9..1d6a75f039d 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/RankPropertiesTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/RankPropertiesTestCase.java @@ -5,7 +5,7 @@ import com.yahoo.search.query.profile.QueryProfileRegistry; import com.yahoo.searchdefinition.derived.AttributeFields; import com.yahoo.searchdefinition.derived.RawRankProfile; import com.yahoo.searchdefinition.parser.ParseException; -import ai.vespa.rankingexpression.importer.ImportedModels; +import com.yahoo.config.model.api.ImportedMlModels; import org.junit.Test; import static org.junit.Assert.assertEquals; @@ -55,7 +55,7 @@ public class RankPropertiesTestCase extends SearchDefinitionTestCase { assertEquals("query(a) = 1500", parent.getRankProperties().get(0).toString()); // Check derived model - RawRankProfile rawParent = new RawRankProfile(parent, new QueryProfileRegistry(), new ImportedModels(), attributeFields); + RawRankProfile rawParent = new RawRankProfile(parent, new QueryProfileRegistry(), new ImportedMlModels(), attributeFields); assertEquals("(query(a),1500)", rawParent.configProperties().get(0).toString()); } @@ -67,7 +67,7 @@ public class RankPropertiesTestCase extends SearchDefinitionTestCase { // Check derived model RawRankProfile rawChild = new RawRankProfile(rankProfileRegistry.get(search, "child"), new QueryProfileRegistry(), - new ImportedModels(), + new ImportedMlModels(), attributeFields); assertEquals("(query(a),2000)", rawChild.configProperties().get(0).toString()); } |