Skip to content

Commit

Permalink
fix tests for getProcessors in neural search
Browse files Browse the repository at this point in the history
Signed-off-by: yuye-aws <[email protected]>
  • Loading branch information
yuye-aws committed Feb 27, 2024
1 parent d187cbb commit 8f461e2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
package org.opensearch.neuralsearch.plugin;

import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

import java.util.List;
import java.util.Map;
import java.util.Optional;

import org.opensearch.common.settings.Settings;
import org.opensearch.env.Environment;
import org.opensearch.indices.IndicesService;
import org.opensearch.ingest.IngestService;
import org.opensearch.ingest.Processor;
Expand Down Expand Up @@ -57,8 +60,11 @@ public void testQueryPhaseSearcher() {

public void testProcessors() {
NeuralSearch plugin = new NeuralSearch();
Settings settings = Settings.builder().build();
Environment environment = mock(Environment.class);
when(environment.settings()).thenReturn(settings);
Processor.Parameters processorParams = new Processor.Parameters(
null,
environment,
null,
null,
null,
Expand Down

0 comments on commit 8f461e2

Please sign in to comment.