aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/prelude/semantics/test/SemanticSearcherTestCase.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2021-10-10 11:25:02 +0200
committerJon Bratseth <bratseth@gmail.com>2021-10-10 11:25:02 +0200
commit27bcc7e03be01b200654254af59a20566567ca33 (patch)
tree63eab384dc0e9027eeab38ceaf487e25a61c25ed /container-search/src/test/java/com/yahoo/prelude/semantics/test/SemanticSearcherTestCase.java
parent165142127b8d40621fdd29a2fcac74084eeb4d9c (diff)
Guarantee we always have an executor
Diffstat (limited to 'container-search/src/test/java/com/yahoo/prelude/semantics/test/SemanticSearcherTestCase.java')
-rw-r--r--container-search/src/test/java/com/yahoo/prelude/semantics/test/SemanticSearcherTestCase.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/container-search/src/test/java/com/yahoo/prelude/semantics/test/SemanticSearcherTestCase.java b/container-search/src/test/java/com/yahoo/prelude/semantics/test/SemanticSearcherTestCase.java
index 5c8378a0ced..2840060ae86 100644
--- a/container-search/src/test/java/com/yahoo/prelude/semantics/test/SemanticSearcherTestCase.java
+++ b/container-search/src/test/java/com/yahoo/prelude/semantics/test/SemanticSearcherTestCase.java
@@ -1,9 +1,7 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.semantics.test;
-import com.google.common.util.concurrent.MoreExecutors;
import com.yahoo.component.chain.Chain;
-import com.yahoo.language.Linguistics;
import com.yahoo.language.simple.SimpleLinguistics;
import com.yahoo.prelude.query.WeightedSetItem;
import com.yahoo.search.Query;
@@ -180,7 +178,9 @@ public class SemanticSearcherTestCase extends RuleBaseAbstractTestCase {
}
private Execution createExecution(Searcher searcher) {
- Execution.Context context = new Execution.Context(null, null, null, new RendererRegistry(MoreExecutors.directExecutor()), new SimpleLinguistics(), null);
+ Execution.Context context = new Execution.Context(null, null, null,
+ new RendererRegistry(Runnable::run),
+ new SimpleLinguistics(), Runnable::run);
return new Execution(chainedAsSearchChain(searcher), context);
}