From 2a8fe67858ed1d1bd7390912b5ee3fa925be8637 Mon Sep 17 00:00:00 2001 From: Raf Ponsaerts Date: Tue, 12 May 2020 13:24:56 +0200 Subject: [PATCH] Trying Travis Tests --- .../src/test/java/org/dspace/discovery/DiscoveryIT.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } }