diff --git a/dspace-api/src/test/java/org/dspace/discovery/DiscoveryIT.java b/dspace-api/src/test/java/org/dspace/discovery/DiscoveryIT.java index f6e5e248af..144a24529e 100644 --- a/dspace-api/src/test/java/org/dspace/discovery/DiscoveryIT.java +++ b/dspace-api/src/test/java/org/dspace/discovery/DiscoveryIT.java @@ -9,6 +9,7 @@ package org.dspace.discovery; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.sql.SQLException; @@ -139,7 +140,7 @@ public class DiscoveryIT extends AbstractIntegrationTest { } @Test - public void assertSolrNotNull() { - assertNotNull(searchService.getSolrSearchCore().getSolr()); + public void assertSolrSearchCoreIsMock() { + assertTrue(searchService.getSolrSearchCore() instanceof MockSolrSearchCore); } }