Browse Source

CensusEntry BirthDay and BirthYear added to bootstrap

Andrew Grant 7 months ago
parent
commit
2513d0962d

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

@@ -76,6 +76,8 @@ public class DataLoadCensus {
         censusEntryCommand.setAge("72");
         censusEntryCommand.setAge("72");
         censusEntryCommand.setWhereBorn("Edinburgh");
         censusEntryCommand.setWhereBorn("Edinburgh");
         censusEntryCommand.setSex(CensusEntrySex.MALE);
         censusEntryCommand.setSex(CensusEntrySex.MALE);
+        censusEntryCommand.setBirthDay("25/01");
+        censusEntryCommand.setBirthYear("1953");
 
 
         censusEntryService.saveCensusEntryCommand(censusEntryCommand);
         censusEntryService.saveCensusEntryCommand(censusEntryCommand);
     }
     }

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

@@ -90,6 +90,8 @@ public class DataLoadCensusTest {
         assertEquals("72", captor.getValue().getAge());
         assertEquals("72", captor.getValue().getAge());
         assertEquals("Edinburgh", captor.getValue().getWhereBorn());
         assertEquals("Edinburgh", captor.getValue().getWhereBorn());
         assertEquals(CensusEntrySex.MALE, captor.getValue().getSex());
         assertEquals(CensusEntrySex.MALE, captor.getValue().getSex());
+        assertEquals("25/01", captor.getValue().getBirthDay());
+        assertEquals("1953", captor.getValue().getBirthYear());
 
 
     }
     }