Explorar el Código

CensusEntryTest

Andrew Grant hace 2 meses
padre
commit
a4cffe7c44

+ 13 - 1
src/test/java/scot/carricksoftware/grantswriter/domains/census/CensusEntryPartOneTest.java

@@ -57,7 +57,6 @@ class CensusEntryPartOneTest {
         assertEquals(census, entry.getCensus());
     }
 
-
     @Test
     void getPersonTest() {
         assertNull(entry.getPerson());
@@ -70,5 +69,18 @@ class CensusEntryPartOneTest {
         assertEquals(person, entry.getPerson());
     }
 
+    @Test
+    void getPersonOccupationTest() {
+        assertNull(entry.getPersonalOccupation());
+    }
+
+    @Test
+    void setPersonalOccupationTest() {
+        String occupation = GetRandomString();
+        entry.setPersonalOccupation(occupation);
+        assertEquals(occupation, entry.getPersonalOccupation());
+    }
+
+
 
 }