Skip to content

Commit

Permalink
Merge pull request DSpace#10189 from uniba-ub/issue-10188
Browse files Browse the repository at this point in the history
switch IT search core to MockSolrSearchCore
  • Loading branch information
tdonohue authored Jan 9, 2025
2 parents c39822a + 6d781e8 commit ee1d711
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
import org.dspace.content.virtual.VirtualMetadataConfiguration;
import org.dspace.content.virtual.VirtualMetadataPopulator;
import org.dspace.core.Constants;
import org.dspace.discovery.SolrSearchCore;
import org.dspace.discovery.MockSolrSearchCore;
import org.dspace.kernel.ServiceManager;
import org.dspace.services.factory.DSpaceServicesFactory;
import org.dspace.versioning.Version;
Expand All @@ -79,8 +79,9 @@ public class VersioningWithRelationshipsIT extends AbstractIntegrationTestWithDa
ContentServiceFactory.getInstance().getInstallItemService();
private final ItemService itemService =
ContentServiceFactory.getInstance().getItemService();
private final SolrSearchCore solrSearchCore =
DSpaceServicesFactory.getInstance().getServiceManager().getServicesByType(SolrSearchCore.class).get(0);
private final MockSolrSearchCore solrSearchCore =
DSpaceServicesFactory.getInstance().getServiceManager().getServiceByName(null, MockSolrSearchCore.class);

protected Community community;
protected Collection collection;
protected EntityType publicationEntityType;
Expand Down

0 comments on commit ee1d711

Please sign in to comment.