Skip to content

Commit

Permalink
Fix mock setup in tests.
Browse files Browse the repository at this point in the history
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
  • Loading branch information
MaxKsyunz committed Aug 10, 2022
1 parent 3029b5b commit 3b0c9a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.<String, RelevanceQuery.QueryBuilderStep<QueryBuilder>>builder()
.put("boost", (k, v) -> k.boost(Float.parseFloat(v.stringValue()))).build())
.defaultAnswer(Mockito.CALLS_REAL_METHODS));
Expand Down

0 comments on commit 3b0c9a4

Please sign in to comment.