Commit 5e68be4 1 parent da4c6c7 commit 5e68be4 Copy full SHA for 5e68be4
File tree 1 file changed +2
-0
lines changed
src/test/java/org/opensearch/neuralsearch/processor
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 19
19
import static java .util .Collections .singletonMap ;
20
20
import static org .mockito .ArgumentMatchers .any ;
21
21
import static org .mockito .ArgumentMatchers .anyString ;
22
+ import static org .mockito .ArgumentMatchers .eq ;
22
23
import static org .mockito .Mockito .when ;
23
24
import static org .mockito .Mockito .mock ;
24
25
@@ -97,6 +98,7 @@ public void setup() {
97
98
IndexMetadata indexMetadata = mock (IndexMetadata .class );
98
99
when (indexMetadata .getIndex ()).thenReturn (new Index ("my_index" , UUID .randomUUID ().toString ()));
99
100
when (indexMetadata .getSettings ()).thenReturn (settings );
101
+ when (indexMetadata .getCustomData (eq (IndexMetadata .REMOTE_STORE_CUSTOM_KEY ))).thenReturn (null );
100
102
IndexService indexService = mock (IndexService .class );
101
103
when (indicesService .indexServiceSafe (any (Index .class ))).thenReturn (indexService );
102
104
IndexSettings indexSettings = new IndexSettings (indexMetadata , settings );
You can’t perform that action at this time.
0 commit comments