Преглед на файлове

Added image domain tests (5)

Andrew Grant преди 3 месеца
родител
ревизия
2e2d4cb119

+ 3 - 1
src/test/java/scot/carricksoftware/grantswriter/domains/images/ImageTest.java

@@ -8,9 +8,11 @@ package scot.carricksoftware.grantswriter.domains.images;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
 
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
 import static scot.carricksoftware.grantswriter.GenerateRandomNumberValues.GetRandomLong;
 
+
 class ImageTest {
     private Image image;
 

+ 0 - 15
src/test/java/scot/carricksoftware/grantswriter/domains/images/PersonImageTest.java

@@ -7,13 +7,10 @@ package scot.carricksoftware.grantswriter.domains.images;
 
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
-import scot.carricksoftware.grantswriter.domains.people.Person;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNull;
 import static scot.carricksoftware.grantswriter.GenerateRandomNumberValues.GetRandomLong;
-import static scot.carricksoftware.grantswriter.GenerateRandomPeopleValues.GetRandomPerson;
-
 
 class PersonImageTest {
 
@@ -36,16 +33,4 @@ class PersonImageTest {
         assertEquals(id, image.getId());
     }
 
-    @Test
-    public void getPersonTest() {
-        assertNull(image.getPerson());
-    }
-
-    @Test
-    public void setPersonTest() {
-        Person person = GetRandomPerson();
-        image.setPerson(person);
-        assertEquals(person, image.getPerson());
-    }
-
 }