Skip to content

Commit

Permalink
Fix UserSelectionsApiTest being too strict about the submittor
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-hotz committed Nov 7, 2024
1 parent 66e9c38 commit 948575b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 948575b

Please sign in to comment.