|
@@ -12,9 +12,11 @@ import scot.carricksoftware.grants.commands.census.CensusEntryCommandImpl;
|
|
|
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.CensusEntryRelationship;
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
+import static scot.carricksoftware.grants.GenerateCensusEntryConditionRandomValue.GetRandomCensusEntryCondition;
|
|
|
import static scot.carricksoftware.grants.GenerateCensusEntryRelationshipRandomValue.GetRandomCensusEntryRelationship;
|
|
|
import static scot.carricksoftware.grants.GenerateCertificateRandomValues.GetRandomString;
|
|
|
import static scot.carricksoftware.grants.GenerateRandomCensusValues.GetRandomCensus;
|
|
@@ -35,6 +37,7 @@ class CensusEntryCommandConverterTest {
|
|
|
Long id = GetRandomLong();
|
|
|
String name = GetRandomString();
|
|
|
CensusEntryRelationship relationship = GetRandomCensusEntryRelationship();
|
|
|
+ CensusEntryCondition condition = GetRandomCensusEntryCondition();
|
|
|
CensusEntryCommand source = new CensusEntryCommandImpl();
|
|
|
Census census = GetRandomCensus();
|
|
|
Person person = GetRandomPerson();
|
|
@@ -45,6 +48,7 @@ class CensusEntryCommandConverterTest {
|
|
|
source.setCensus(census);
|
|
|
source.setPerson(person);
|
|
|
source.setRelationship(relationship);
|
|
|
+ source.setCondition(condition);
|
|
|
|
|
|
|
|
|
CensusEntry target = converter.convert(source);
|
|
@@ -55,5 +59,6 @@ class CensusEntryCommandConverterTest {
|
|
|
assertEquals(census, target.getCensus());
|
|
|
assertEquals(person, target.getPerson());
|
|
|
assertEquals(relationship, target.getRelationship());
|
|
|
+ assertEquals(condition, target.getCondition());
|
|
|
}
|
|
|
}
|