Procházet zdrojové kódy

Informants added to BirthCertificate bootstrap

Andrew Grant před 5 měsíci
rodič
revize
0e7eb6a1bd

+ 3 - 0
src/main/java/scot/carricksoftware/grants/bootstrap/DataLoadCertificates.java

@@ -71,6 +71,9 @@ public class DataLoadCertificates {
 
         birthCertificateCommand.setMother(personService.findById(2L));
         birthCertificateCommand.setWhereBorn(placeService.findById(1L));
+        birthCertificateCommand.setInformant(personService.findById(1L));
+        birthCertificateCommand.setUntrackedInformant("Untracked Informant");
+        birthCertificateCommand.setInformantQualification("Qualification");
 
         birthCertificateService.saveBirthCertificateCommand(birthCertificateCommand);
     }

+ 3 - 0
src/test/java/scot/carricksoftware/grants/bootstrap/DataLoadCertificatesBirthCertificatesTest.java

@@ -99,6 +99,9 @@ public class DataLoadCertificatesBirthCertificatesTest {
         assertEquals("Edinburgh", captor.getValue().getUntrackedWhereBorn());
         assertEquals(placeMock, captor.getValue().getWhereBorn());
         assertEquals(motherMock, captor.getValue().getMother());
+        assertEquals(fatherMock, captor.getValue().getInformant());
+        assertEquals("Untracked Informant", captor.getValue().getUntrackedInformant());
+        assertEquals("Qualification", captor.getValue().getInformantQualification());
 
     }