summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-02-20 16:48:25 +0100
committerJon Bratseth <bratseth@oath.com>2018-02-20 16:48:25 +0100
commitaffc37541fdadebbd02034a089699ceef438582c (patch)
tree3ce8f37c3596a36ae71fdd3758664c119ae336f8
parent0b57615198ea832beda2da8e2b9bcc765d8dd3a2 (diff)
Simplify
-rw-r--r--config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionTypeValidatorTestCase.java12
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 { ",