Parcourir la source

GatherDeathCertificateDeceasedTimeLineDataImpl (3)

Andrew Grant il y a 2 mois
Parent
commit
a80c8a6428

+ 13 - 1
src/test/java/scot/carricksoftware/grantswriter/domains/people/PersonTest.java

@@ -57,7 +57,7 @@ public class PersonTest {
     }
 
     @Test
-    void getCertifiedYearOfBirthTest() {
+    void getCertifiedYearOfDeathTest() {
         assertNull(person.getCertifiedYearOfBirth());
     }
 
@@ -67,4 +67,16 @@ public class PersonTest {
         person.setCertifiedYearOfBirth(certifiedYearOfBirth);
         assertEquals(certifiedYearOfBirth, person.getCertifiedYearOfBirth());
     }
+
+    @Test
+    void getCertifiedYearOfBirthTest() {
+        assertNull(person.getCertifiedYearOfBirth());
+    }
+
+    @Test
+    void setCertifiedYearOfDeathTest() {
+        String certifiedYearOfDeath = GetRandomString();
+        person.setCertifiedYearOfDeath(certifiedYearOfDeath);
+        assertEquals(certifiedYearOfDeath, person.getCertifiedYearOfDeath());
+    }
 }