File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
server/src/test/java/org/opensearch/index/engine Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,10 @@ public void testRecovery() throws IOException {
131
131
}
132
132
133
133
public void testPushAPIFailures () {
134
- assertThrows (IngestionEngineException .class , () -> ingestionEngine .index (Mockito .any (Engine .Index .class )));
135
- assertThrows (IngestionEngineException .class , () -> ingestionEngine .delete (Mockito .any (Engine .Delete .class )));
134
+ Engine .Index indexMock = Mockito .mock (Engine .Index .class );
135
+ assertThrows (IngestionEngineException .class , () -> ingestionEngine .index (indexMock ));
136
+ Engine .Delete deleteMock = Mockito .mock (Engine .Delete .class );
137
+ assertThrows (IngestionEngineException .class , () -> ingestionEngine .delete (deleteMock ));
136
138
}
137
139
138
140
public void testCreationFailure () throws IOException {
You can’t perform that action at this time.
0 commit comments