From 948575b5a16466770fe13ce6ccad23587ebf47ef Mon Sep 17 00:00:00 2001 From: Tobias Hotz Date: Thu, 7 Nov 2024 17:07:24 +0100 Subject: [PATCH] Fix UserSelectionsApiTest being too strict about the submittor --- .../org/fao/geonet/api/selections/UserSelectionsApiTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())