From 3b0c9a4e317bd114e73db9eff040f6b504017e0c Mon Sep 17 00:00:00 2001 From: MaxKsyunz Date: Fri, 22 Jul 2022 23:32:29 -0700 Subject: [PATCH] Fix mock setup in tests. Signed-off-by: MaxKsyunz --- .../script/filter/lucene/relevance/RelevanceQueryBuildTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensearch/src/test/java/org/opensearch/sql/opensearch/storage/script/filter/lucene/relevance/RelevanceQueryBuildTest.java b/opensearch/src/test/java/org/opensearch/sql/opensearch/storage/script/filter/lucene/relevance/RelevanceQueryBuildTest.java index 1a9e4f9117..cb25c9596f 100644 --- a/opensearch/src/test/java/org/opensearch/sql/opensearch/storage/script/filter/lucene/relevance/RelevanceQueryBuildTest.java +++ b/opensearch/src/test/java/org/opensearch/sql/opensearch/storage/script/filter/lucene/relevance/RelevanceQueryBuildTest.java @@ -48,7 +48,7 @@ class RelevanceQueryBuildTest { @BeforeEach public void setUp() { - query = mock(RelevanceQuery.class, withSettings().useConstructor( + query = mock(RelevanceQuery.class, withSettings().useConstructor("mock_query", ImmutableMap.>builder() .put("boost", (k, v) -> k.boost(Float.parseFloat(v.stringValue()))).build()) .defaultAnswer(Mockito.CALLS_REAL_METHODS));