Parcourir la source

BMDCache::getPeople()

Andrew Grant il y a 3 mois
Parent
commit
32e090699c

+ 7 - 3
src/test/java/scot/carricksoftware/grants/cache/BMDCacheTest.java

@@ -7,17 +7,21 @@ package scot.carricksoftware.grants.cache;
 
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
+import org.mockito.Mock;
+import scot.carricksoftware.grants.services.people.PersonService;
 
-
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class BMDCacheTest {
 
+    @Mock
+    PersonService personServiceMock;
+
     private BMDCache cache;
 
     @BeforeEach
     void setUp() {
-        cache = new BMDCacheImpl();
+        cache = new BMDCacheImpl(personServiceMock);
     }
 
     @Test