Andrew Grant пре 5 месеци
родитељ
комит
48e7f60f20

+ 2 - 0
docs/enums.txt

@@ -8,3 +8,5 @@
 9: Converter
 10: Converter Test
 11: Bootstrap
+12: Bootstrap Test
+12: Create an Attribute Constant

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

@@ -11,6 +11,7 @@ import scot.carricksoftware.grants.commands.census.CensusEntryCommand;
 import scot.carricksoftware.grants.domains.census.Census;
 import scot.carricksoftware.grants.domains.people.Person;
 import scot.carricksoftware.grants.domains.places.Place;
+import scot.carricksoftware.grants.enums.censusentry.CensusEntryRelationship;
 import scot.carricksoftware.grants.services.census.CensusEntryService;
 import scot.carricksoftware.grants.services.census.CensusService;
 import scot.carricksoftware.grants.services.people.PersonService;
@@ -70,6 +71,7 @@ public class DataLoadCensusTest {
         ArgumentCaptor<CensusEntryCommand> captor = ArgumentCaptor.forClass(CensusEntryCommand.class);
         Census census = GetRandomCensus();
         Person person = GetRandomPerson();
+        CensusEntryRelationship relationship = CensusEntryRelationship.COUSIN;
         when(censusServiceMock.findById(1L)).thenReturn(census);
         when(personServiceMock.findById(1L)).thenReturn(person);
 
@@ -79,6 +81,7 @@ public class DataLoadCensusTest {
         assertEquals("Archie Grant", captor.getValue().getName());
         assertEquals(census, captor.getValue().getCensus());
         assertEquals(person, captor.getValue().getPerson());
+        assertEquals(relationship, captor.getValue().getRelationship());
     }