ソースを参照

AddAttributesTest created

Andrew Grant 3 ヶ月 前
コミット
5200b5aefc

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

@@ -6,10 +6,34 @@
 package scot.carricksoftware.grants.controllers;
 
 import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import org.mockito.Mock;
+import scot.carricksoftware.grants.services.people.PersonService;
+import scot.carricksoftware.grants.services.places.organisations.OrganisationService;
+import scot.carricksoftware.grants.services.places.places.PlaceService;
+
+import static org.junit.jupiter.api.Assertions.assertNotNull;
 
 class AddAttributesTest {
 
+    private AddAttributes addAttributes;
+
+    @Mock
+    private PersonService personServiceMock;
+
+    @Mock
+    private PlaceService placeServiceMock;
+
+    @Mock
+    private OrganisationService organisationServiceMock;
+
     @BeforeEach
     void setUp() {
+        addAttributes = new AddAttributesImpl(personServiceMock, placeServiceMock, organisationServiceMock);
+    }
+
+    @Test
+    void constructorTest() {
+        assertNotNull(addAttributes);
     }
 }