浏览代码

CertificateType added to bootstrap

Andrew Grant 6 月之前
父节点
当前提交
e19e2c293b

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

@@ -51,8 +51,9 @@ public class DataLoadCertificates {
         birthCertificateCommand.setNewBorn(personService.findById(1L));
         birthCertificateCommand.setNewBorn(personService.findById(1L));
         birthCertificateCommand.setCertificateDate("25/01/1953");
         birthCertificateCommand.setCertificateDate("25/01/1953");
         birthCertificateCommand.setCertificateNumber("999");
         birthCertificateCommand.setCertificateNumber("999");
-        Organisation organisation = organisationService.findById(1L);
+        birthCertificateCommand.setCertificateType("extract");
 
 
+        Organisation organisation = organisationService.findById(1L);
         birthCertificateCommand.setCertificateSource(organisation);
         birthCertificateCommand.setCertificateSource(organisation);
 
 
         birthCertificateService.saveBirthCertificateCommand(birthCertificateCommand);
         birthCertificateService.saveBirthCertificateCommand(birthCertificateCommand);

+ 1 - 0
src/test/java/scot/carricksoftware/grants/bootstrap/DataLoadCertificatesTest.java

@@ -63,6 +63,7 @@ public class DataLoadCertificatesTest {
         assertEquals(organisation, captor.getValue().getCertificateSource());
         assertEquals(organisation, captor.getValue().getCertificateSource());
         assertEquals("999", captor.getValue().getCertificateNumber());
         assertEquals("999", captor.getValue().getCertificateNumber());
         assertEquals("25/01/1953", captor.getValue().getCertificateDate());
         assertEquals("25/01/1953", captor.getValue().getCertificateDate());
+        assertEquals("extract", captor.getValue().getCertificateType());
     }
     }
 
 
     @Test
     @Test