Przeglądaj źródła

Registered attributes added to bootstrap

Andrew Grant 5 miesięcy temu
rodzic
commit
a33da5d582

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

@@ -74,6 +74,8 @@ public class DataLoadCertificates {
         birthCertificateCommand.setInformant(personService.findById(1L));
         birthCertificateCommand.setUntrackedInformant("Untracked Informant");
         birthCertificateCommand.setInformantQualification("Qualification");
+        birthCertificateCommand.setWhenRegistered("When Registered");
+        birthCertificateCommand.setWhereRegistered("Where Registered");
 
         birthCertificateService.saveBirthCertificateCommand(birthCertificateCommand);
     }

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

@@ -102,6 +102,8 @@ public class DataLoadCertificatesBirthCertificatesTest {
         assertEquals(fatherMock, captor.getValue().getInformant());
         assertEquals("Untracked Informant", captor.getValue().getUntrackedInformant());
         assertEquals("Qualification", captor.getValue().getInformantQualification());
+        assertEquals("Where Registered", captor.getValue().getWhereRegistered());
+        assertEquals("When Registered", captor.getValue().getWhenRegistered());
 
     }