Andrew Grant 3 сар өмнө
parent
commit
3c59851c7b

+ 0 - 5
src/test/java/scot/carricksoftware/grants/controllers/attributes/AddAttributesTest.java

@@ -15,7 +15,6 @@ import scot.carricksoftware.grants.cache.BMDCache;
 import scot.carricksoftware.grants.domains.people.Person;
 import scot.carricksoftware.grants.domains.people.Person;
 import scot.carricksoftware.grants.domains.places.Organisation;
 import scot.carricksoftware.grants.domains.places.Organisation;
 import scot.carricksoftware.grants.domains.places.Place;
 import scot.carricksoftware.grants.domains.places.Place;
-import scot.carricksoftware.grants.services.people.PersonService;
 import scot.carricksoftware.grants.services.places.organisations.OrganisationService;
 import scot.carricksoftware.grants.services.places.organisations.OrganisationService;
 import scot.carricksoftware.grants.services.places.places.PlaceService;
 import scot.carricksoftware.grants.services.places.places.PlaceService;
 
 
@@ -34,9 +33,6 @@ class AddAttributesTest {
     @Mock
     @Mock
     private BMDCache bmdCacheMock;
     private BMDCache bmdCacheMock;
 
 
-    @Mock
-    private PersonService personServiceMock;
-
     @Mock
     @Mock
     private PlaceService placeServiceMock;
     private PlaceService placeServiceMock;
 
 
@@ -54,7 +50,6 @@ class AddAttributesTest {
     @Test
     @Test
     void AddBMDCertificatePeopleTest() {
     void AddBMDCertificatePeopleTest() {
         List<Person> peopleList = new ArrayList<>();
         List<Person> peopleList = new ArrayList<>();
-        when(personServiceMock.findAll()).thenReturn(peopleList);
         addAttributes.AddBMDCertificate(modelMock);
         addAttributes.AddBMDCertificate(modelMock);
         verify(modelMock).addAttribute("people", peopleList);
         verify(modelMock).addAttribute("people", peopleList);
     }
     }