aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/search
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2021-10-01 11:09:08 +0200
committerJon Bratseth <bratseth@gmail.com>2021-10-01 11:09:08 +0200
commitac2519a8842a6397e4abd434439e9dddd2924394 (patch)
tree792275efbb88966a27a7ce54cc31465b563d7ad0 /container-search/src/test/java/com/yahoo/search
parent380b9fa780ead9bcce0e824f7b6ee305e37dec43 (diff)
Encapsulate in a context
Diffstat (limited to 'container-search/src/test/java/com/yahoo/search')
-rw-r--r--container-search/src/test/java/com/yahoo/search/query/profile/types/test/QueryProfileTypeTestCase.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/query/profile/types/test/QueryProfileTypeTestCase.java b/container-search/src/test/java/com/yahoo/search/query/profile/types/test/QueryProfileTypeTestCase.java
index e63c7711ff2..f11e5614635 100644
--- a/container-search/src/test/java/com/yahoo/search/query/profile/types/test/QueryProfileTypeTestCase.java
+++ b/container-search/src/test/java/com/yahoo/search/query/profile/types/test/QueryProfileTypeTestCase.java
@@ -747,16 +747,16 @@ public class QueryProfileTypeTestCase {
}
@Override
- public List<Integer> embed(String text, Language language, String destination) {
+ public List<Integer> embed(String text, Embedder.Context context) {
fail("Unexpected call");
return null;
}
@Override
- public Tensor embed(String text, Language language, String destination, TensorType tensorType) {
+ public Tensor embed(String text, Embedder.Context context, TensorType tensorType) {
assertEquals(expectedText, text);
- assertEquals(expectedLanguage, language);
- assertEquals(expectedDestination, destination);
+ assertEquals(expectedLanguage, context.getLanguage());
+ assertEquals(expectedDestination, context.getDestination());
assertEquals(tensorToReturn.type(), tensorType);
return tensorToReturn;
}