Browse Source

Birth Certificate mother and father place added to bootstrap

Andrew Grant 5 months ago
parent
commit
7f82a7a42c

+ 2 - 1
src/main/java/scot/carricksoftware/grants/bootstrap/DataLoadCertificates.java

@@ -81,7 +81,8 @@ public class DataLoadCertificates {
         birthCertificateCommand.setInformantResidence("2 Wilson Avenue, Edinburgh");
         birthCertificateCommand.setMotherUsualResidence(placeService.findById(1L));
         birthCertificateCommand.setUntrackedMotherUsualResidence("92 Broughton Road, Edinburgh");
-
+        birthCertificateCommand.setMotherPlaceOfBirth("MPOB");
+        birthCertificateCommand.setFatherPlaceOfBirth("FPOB");
         birthCertificateService.saveBirthCertificateCommand(birthCertificateCommand);
     }
 

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

@@ -114,6 +114,8 @@ public class DataLoadCertificatesBirthCertificatesTest {
         assertEquals(placeMock, captor.getValue().getFatherUsualResidence());
         assertEquals("92 Broughton Road, Edinburgh", captor.getValue().getUntrackedMotherUsualResidence());
         assertEquals(placeMock, captor.getValue().getMotherUsualResidence());
+        assertEquals("MPOB", captor.getValue().getMotherPlaceOfBirth());
+        assertEquals("FPOB", captor.getValue().getFatherPlaceOfBirth());
     }