diff --git a/services/src/test/java/org/fao/geonet/api/selections/UserSelectionsApiTest.java b/services/src/test/java/org/fao/geonet/api/selections/UserSelectionsApiTest.java index b2684f22a92..afa379d5752 100644 --- a/services/src/test/java/org/fao/geonet/api/selections/UserSelectionsApiTest.java +++ b/services/src/test/java/org/fao/geonet/api/selections/UserSelectionsApiTest.java @@ -33,6 +33,7 @@ import org.fao.geonet.kernel.mef.MEFLibIntegrationTest; import org.fao.geonet.kernel.search.IndexingMode; import org.fao.geonet.kernel.search.submission.DirectIndexSubmittor; +import org.fao.geonet.kernel.search.submission.IIndexSubmittor; import org.fao.geonet.repository.MetadataRepository; import org.fao.geonet.repository.SelectionRepository; import org.fao.geonet.services.AbstractServiceIntegrationTest; @@ -244,7 +245,7 @@ public void addDeleteSelection() throws Exception { .accept(MediaType.parseMediaType("application/json"))) .andExpect(status().isNoContent()); - verify(this.metadataIndexerSpy, times(2)).indexMetadata(eq(metadataId), eq(DirectIndexSubmittor.INSTANCE), eq(IndexingMode.full)); + verify(this.metadataIndexerSpy, times(2)).indexMetadata(eq(metadataId), any(IIndexSubmittor.class), eq(IndexingMode.full)); // Delete this.mockMvc.perform(delete("/srv/api/userselections/" + createdSelection.getId())