|
@@ -12,6 +12,7 @@ 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.CensusEntryCondition;
|
|
|
+import scot.carricksoftware.grants.enums.censusentry.CensusEntryGaelic;
|
|
|
import scot.carricksoftware.grants.enums.censusentry.CensusEntryRelationship;
|
|
|
import scot.carricksoftware.grants.services.census.CensusEntryService;
|
|
|
import scot.carricksoftware.grants.services.census.CensusService;
|
|
@@ -74,6 +75,7 @@ public class DataLoadCensusTest {
|
|
|
Person person = GetRandomPerson();
|
|
|
CensusEntryRelationship relationship = CensusEntryRelationship.COUSIN;
|
|
|
CensusEntryCondition condition = CensusEntryCondition.MARRIED;
|
|
|
+ CensusEntryGaelic gaelic = CensusEntryGaelic.GAELIC;
|
|
|
when(censusServiceMock.findById(1L)).thenReturn(census);
|
|
|
when(personServiceMock.findById(1L)).thenReturn(person);
|
|
|
|
|
@@ -85,6 +87,7 @@ public class DataLoadCensusTest {
|
|
|
assertEquals(person, captor.getValue().getPerson());
|
|
|
assertEquals(relationship, captor.getValue().getRelationship());
|
|
|
assertEquals(condition, captor.getValue().getCondition());
|
|
|
+ assertEquals(gaelic, captor.getValue().getGaelic());
|
|
|
}
|
|
|
|
|
|
|