Skip to content

Commit 948575b

Browse files
committed
Fix UserSelectionsApiTest being too strict about the submittor
1 parent 66e9c38 commit 948575b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/src/test/java/org/fao/geonet/api/selections/UserSelectionsApiTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.fao.geonet.kernel.mef.MEFLibIntegrationTest;
3434
import org.fao.geonet.kernel.search.IndexingMode;
3535
import org.fao.geonet.kernel.search.submission.DirectIndexSubmittor;
36+
import org.fao.geonet.kernel.search.submission.IIndexSubmittor;
3637
import org.fao.geonet.repository.MetadataRepository;
3738
import org.fao.geonet.repository.SelectionRepository;
3839
import org.fao.geonet.services.AbstractServiceIntegrationTest;
@@ -244,7 +245,7 @@ public void addDeleteSelection() throws Exception {
244245
.accept(MediaType.parseMediaType("application/json")))
245246
.andExpect(status().isNoContent());
246247

247-
verify(this.metadataIndexerSpy, times(2)).indexMetadata(eq(metadataId), eq(DirectIndexSubmittor.INSTANCE), eq(IndexingMode.full));
248+
verify(this.metadataIndexerSpy, times(2)).indexMetadata(eq(metadataId), any(IIndexSubmittor.class), eq(IndexingMode.full));
248249

249250
// Delete
250251
this.mockMvc.perform(delete("/srv/api/userselections/" + createdSelection.getId())

0 commit comments

Comments
 (0)