|
@@ -13,11 +13,11 @@ import scot.carricksoftware.grants.domains.census.Census;
|
|
|
import scot.carricksoftware.grants.domains.census.CensusEntry;
|
|
|
import scot.carricksoftware.grants.domains.people.Person;
|
|
|
import scot.carricksoftware.grants.enums.censusentry.CensusEntryCondition;
|
|
|
+import scot.carricksoftware.grants.enums.censusentry.CensusEntryGaelic;
|
|
|
import scot.carricksoftware.grants.enums.censusentry.CensusEntryRelationship;
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
-import static scot.carricksoftware.grants.GenerateCensusEntryRandomEnums.GetRandomCensusEntryCondition;
|
|
|
-import static scot.carricksoftware.grants.GenerateCensusEntryRandomEnums.GetRandomCensusEntryRelationship;
|
|
|
+import static scot.carricksoftware.grants.GenerateCensusEntryRandomEnums.*;
|
|
|
import static scot.carricksoftware.grants.GenerateCertificateRandomValues.GetRandomString;
|
|
|
import static scot.carricksoftware.grants.GenerateRandomCensusValues.GetRandomCensus;
|
|
|
import static scot.carricksoftware.grants.GenerateRandomNumberValues.GetRandomLong;
|
|
@@ -38,6 +38,7 @@ class CensusEntryCommandConverterTest {
|
|
|
String name = GetRandomString();
|
|
|
CensusEntryRelationship relationship = GetRandomCensusEntryRelationship();
|
|
|
CensusEntryCondition condition = GetRandomCensusEntryCondition();
|
|
|
+ CensusEntryGaelic gaelic = GetRandomCensusEntryGaelic();
|
|
|
CensusEntryCommand source = new CensusEntryCommandImpl();
|
|
|
Census census = GetRandomCensus();
|
|
|
Person person = GetRandomPerson();
|
|
@@ -49,7 +50,7 @@ class CensusEntryCommandConverterTest {
|
|
|
source.setPerson(person);
|
|
|
source.setRelationship(relationship);
|
|
|
source.setCondition(condition);
|
|
|
-
|
|
|
+ source.setGaelic(gaelic);
|
|
|
|
|
|
CensusEntry target = converter.convert(source);
|
|
|
|
|
@@ -60,5 +61,6 @@ class CensusEntryCommandConverterTest {
|
|
|
assertEquals(person, target.getPerson());
|
|
|
assertEquals(relationship, target.getRelationship());
|
|
|
assertEquals(condition, target.getCondition());
|
|
|
+ assertEquals(gaelic, target.getGaelic());
|
|
|
}
|
|
|
}
|