|
|
@@ -22,8 +22,7 @@ class DeathCertificateTwoTest {
|
|
|
void setUp() {
|
|
|
deathCertificate = new DeathCertificate();
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
@Test
|
|
|
void getCauseOfDeathTest() {
|
|
|
assertNull(deathCertificate.getCauseOfDeath());
|
|
|
@@ -36,4 +35,16 @@ class DeathCertificateTwoTest {
|
|
|
assertEquals(causeOfDeath, deathCertificate.getCauseOfDeath());
|
|
|
}
|
|
|
|
|
|
+ @Test
|
|
|
+ void getInformantQualificationTest() {
|
|
|
+ assertNull(deathCertificate.getInformantQualification());
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void setInformantQualificationTest() {
|
|
|
+ String informantQualification = GetRandomString();
|
|
|
+ deathCertificate.setInformantQualification(informantQualification);
|
|
|
+ assertEquals(informantQualification, deathCertificate.getInformantQualification());
|
|
|
+ }
|
|
|
+
|
|
|
}
|