diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-02-20 16:48:25 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-02-20 16:48:25 +0100 |
commit | affc37541fdadebbd02034a089699ceef438582c (patch) | |
tree | 3ce8f37c3596a36ae71fdd3758664c119ae336f8 | |
parent | 0b57615198ea832beda2da8e2b9bcc765d8dd3a2 (diff) |
Simplify
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionTypeValidatorTestCase.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionTypeValidatorTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionTypeValidatorTestCase.java index 3930ac1fe0e..056d2ad534b 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionTypeValidatorTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionTypeValidatorTestCase.java @@ -25,8 +25,7 @@ public class RankingExpressionTypeValidatorTestCase { @Test public void tensorFirstPhaseMustProduceDouble() throws Exception { try { - RankProfileRegistry rankProfileRegistry = new RankProfileRegistry(); - SearchBuilder builder = new SearchBuilder(rankProfileRegistry); + SearchBuilder builder = new SearchBuilder(); builder.importString(joinLines( "search test {", " document test { ", @@ -53,8 +52,7 @@ public class RankingExpressionTypeValidatorTestCase { @Test public void tensorSecondPhaseMustProduceDouble() throws Exception { try { - RankProfileRegistry rankProfileRegistry = new RankProfileRegistry(); - SearchBuilder builder = new SearchBuilder(rankProfileRegistry); + SearchBuilder builder = new SearchBuilder(); builder.importString(joinLines( "search test {", " document test { ", @@ -84,8 +82,7 @@ public class RankingExpressionTypeValidatorTestCase { @Test public void tensorConditionsMustHaveTypeCompatibleBranches() throws Exception { try { - RankProfileRegistry rankProfileRegistry = new RankProfileRegistry(); - SearchBuilder searchBuilder = new SearchBuilder(rankProfileRegistry); + SearchBuilder searchBuilder = new SearchBuilder(); searchBuilder.importString(joinLines( "search test {", " document test { ", @@ -148,8 +145,7 @@ public class RankingExpressionTypeValidatorTestCase { @Test public void testTensorMacroInvocationTypes_Nested() throws Exception { - RankProfileRegistry rankProfileRegistry = new RankProfileRegistry(); - SearchBuilder builder = new SearchBuilder(rankProfileRegistry); + SearchBuilder builder = new SearchBuilder(); builder.importString(joinLines( "search test {", " document test { ", |