瀏覽代碼

PersonalOccupation added to census entry bootstrap

Andrew Grant 7 月之前
父節點
當前提交
a20a409425

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

@@ -78,6 +78,7 @@ public class DataLoadCensus {
         censusEntryCommand.setSex(CensusEntrySex.MALE);
         censusEntryCommand.setBirthDay("25/01");
         censusEntryCommand.setBirthYear("1953");
+        censusEntryCommand.setPersonalOccupation("AA Patrol");
 
         censusEntryService.saveCensusEntryCommand(censusEntryCommand);
     }

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

@@ -92,6 +92,7 @@ public class DataLoadCensusTest {
         assertEquals(CensusEntrySex.MALE, captor.getValue().getSex());
         assertEquals("25/01", captor.getValue().getBirthDay());
         assertEquals("1953", captor.getValue().getBirthYear());
+        assertEquals("AA Patrol", captor.getValue().getPersonalOccupation());
 
     }