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