diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-01-28 12:34:59 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2022-01-28 12:34:59 +0100 |
commit | ad5a26fb5fed5b8c29a997ecb3216a941df3e0b5 (patch) | |
tree | 570b76354ed5222026066b845f32c543e21b1016 /config-model/src/test/java/com/yahoo/searchdefinition/SchemaTestCase.java | |
parent | f64be46a37319129c640451dcff10fc067535e15 (diff) |
Support multiple inheritance of rank profiles
Diffstat (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/SchemaTestCase.java')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/SchemaTestCase.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/SchemaTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/SchemaTestCase.java index d012f330328..818e05a46f0 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/SchemaTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/SchemaTestCase.java @@ -187,7 +187,7 @@ public class SchemaTestCase { assertNotNull(child1.getExtraField("child1_field")); assertNotNull(builder.getRankProfileRegistry().get(child1, "parent_profile")); assertNotNull(builder.getRankProfileRegistry().get(child1, "child1_profile")); - assertEquals("parent_profile", builder.getRankProfileRegistry().get(child1, "child1_profile").getInheritedName()); + assertEquals("parent_profile", builder.getRankProfileRegistry().get(child1, "child1_profile").inheritedNames().get(0)); assertNotNull(child1.rankingConstants().get("parent_constant")); assertNotNull(child1.rankingConstants().get("child1_constant")); assertTrue(child1.rankingConstants().asMap().containsKey("parent_constant")); @@ -222,7 +222,7 @@ public class SchemaTestCase { assertNotNull(child2.getExtraField("child2_field")); assertNotNull(builder.getRankProfileRegistry().get(child2, "parent_profile")); assertNotNull(builder.getRankProfileRegistry().get(child2, "child2_profile")); - assertEquals("parent_profile", builder.getRankProfileRegistry().get(child2, "child2_profile").getInheritedName()); + assertEquals("parent_profile", builder.getRankProfileRegistry().get(child2, "child2_profile").inheritedNames().get(0)); assertNotNull(child2.rankingConstants().get("parent_constant")); assertNotNull(child2.rankingConstants().get("child2_constant")); assertTrue(child2.rankingConstants().asMap().containsKey("parent_constant")); |